Skip to content

Commit f878759

Browse files
authored
Remove shape query (#6944)
* Remove shape query * Update to latest 6.x SDK * Remove test
1 parent 2671ab9 commit f878759

20 files changed

+15
-881
lines changed

.ci/DockerFile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG DOTNET_VERSION=6.0.401
1+
ARG DOTNET_VERSION=6.0.403
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

44
ARG USER_ID

.ci/make.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OUTPUT_DIR="$repo/${output_folder}"
4242
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4343
mkdir -p "$OUTPUT_DIR"
4444

45-
DOTNET_VERSION=${DOTNET_VERSION-6.0.401}
45+
DOTNET_VERSION=${DOTNET_VERSION-6.0.403}
4646

4747
echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m"
4848
echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m"

.ci/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ STACK_VERSION=8.0.0-SNAPSHOT ./.ci/run-tests
3030
|-------------------------|-------------|-------------|
3131
| `STACK_VERSION` | `N/A` | The elasticsearch version to target
3232
| `TEST_SUITE` | `basic` | `free` or `platinum` sets which test suite to run and which container to run against. |
33-
| `DOTNET_VERSION` | `6.0.401` | The .NET sdk version used to grab the proper container |
33+
| `DOTNET_VERSION` | `6.0.403` | The .NET sdk version used to grab the proper container |
3434

3535
If you want to manually spin up elasticsearch for these tests and call the runner afterwards you can use
3636

.ci/run-repository.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "6.0.401"
17+
$DOTNET_VERSION = "6.0.403"
1818
)
1919

2020
$ESC = [char]27

.ci/run-repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
DOTNET_VERSION=${DOTNET_VERSION-6.0.401}
12+
DOTNET_VERSION=${DOTNET_VERSION-6.0.403}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

.ci/run-tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "6.0.401"
11+
$DOTNET_VERSION = "6.0.403"
1212
)
1313

1414
$ESC = [char]27

.ci/test-matrix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ TEST_SUITE:
88
- platinum
99

1010
DOTNET_VERSION:
11-
- 6.0.401
11+
- 6.0.403
1212

1313
exclude: ~

.github/workflows/integration-jobs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v2
3737
- uses: actions/setup-dotnet@v1
3838
with:
39-
dotnet-version: '6.0.401'
39+
dotnet-version: '6.0.403'
4040
- uses: actions/cache@v2
4141
with:
4242
path: ~/.nuget/packages

.github/workflows/make-bump.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
# Add version and backport labels automatically
3636
- uses: actions/setup-dotnet@v1
3737
with:
38-
dotnet-version: '6.0.401'
38+
dotnet-version: '6.0.403'
3939
- name: Install dotnet-script
4040
run: dotnet tool install release-notes --tool-path dotnet-tool
4141

.github/workflows/make-release-notes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- uses: actions/setup-dotnet@v1
5353
with:
54-
dotnet-version: '6.0.401'
54+
dotnet-version: '6.0.403'
5555
- name: Install dotnet-script
5656
run: dotnet tool install release-notes --tool-path dotnet-tool
5757

.github/workflows/stale-jobs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v2
2525
- uses: actions/setup-dotnet@v1
2626
with:
27-
dotnet-version: '6.0.401'
27+
dotnet-version: '6.0.403'
2828
- uses: actions/cache@v2
2929
with:
3030
path: ~/.nuget/packages

.github/workflows/test-jobs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@v2
2424
- uses: actions/setup-dotnet@v1
2525
with:
26-
dotnet-version: '6.0.401'
26+
dotnet-version: '6.0.403'
2727
- uses: actions/cache@v2
2828
with:
2929
path: ~/.nuget/packages
@@ -53,7 +53,7 @@ jobs:
5353
uses: actions/checkout@v2
5454
- uses: actions/setup-dotnet@v1
5555
with:
56-
dotnet-version: '6.0.401'
56+
dotnet-version: '6.0.403'
5757
- uses: actions/cache@v2
5858
with:
5959
path: ~/.nuget/packages

.github/workflows/unified-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v2
2929
- uses: actions/setup-dotnet@v1
3030
with:
31-
dotnet-version: '6.0.401'
31+
dotnet-version: '6.0.403'
3232

3333
- run: "./.ci/make.sh assemble ${{ matrix.stack_version }}"
3434
name: Assemble ${{ matrix.stack_version }}

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.401",
3+
"version": "6.0.403",
44
"rollForward": "minor",
55
"allowPrerelease": false
66
},

src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs

-56
Original file line numberDiff line numberDiff line change
@@ -451,62 +451,6 @@ public override void Write(Utf8JsonWriter writer, FieldSortNumericType value, Js
451451
}
452452
}
453453

454-
[JsonConverter(typeof(GeoShapeRelationConverter))]
455-
public enum GeoShapeRelation
456-
{
457-
[EnumMember(Value = "within")]
458-
Within,
459-
[EnumMember(Value = "intersects")]
460-
Intersects,
461-
[EnumMember(Value = "disjoint")]
462-
Disjoint,
463-
[EnumMember(Value = "contains")]
464-
Contains
465-
}
466-
467-
internal sealed class GeoShapeRelationConverter : JsonConverter<GeoShapeRelation>
468-
{
469-
public override GeoShapeRelation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
470-
{
471-
var enumString = reader.GetString();
472-
switch (enumString)
473-
{
474-
case "within":
475-
return GeoShapeRelation.Within;
476-
case "intersects":
477-
return GeoShapeRelation.Intersects;
478-
case "disjoint":
479-
return GeoShapeRelation.Disjoint;
480-
case "contains":
481-
return GeoShapeRelation.Contains;
482-
}
483-
484-
ThrowHelper.ThrowJsonException();
485-
return default;
486-
}
487-
488-
public override void Write(Utf8JsonWriter writer, GeoShapeRelation value, JsonSerializerOptions options)
489-
{
490-
switch (value)
491-
{
492-
case GeoShapeRelation.Within:
493-
writer.WriteStringValue("within");
494-
return;
495-
case GeoShapeRelation.Intersects:
496-
writer.WriteStringValue("intersects");
497-
return;
498-
case GeoShapeRelation.Disjoint:
499-
writer.WriteStringValue("disjoint");
500-
return;
501-
case GeoShapeRelation.Contains:
502-
writer.WriteStringValue("contains");
503-
return;
504-
}
505-
506-
writer.WriteNullValue();
507-
}
508-
}
509-
510454
[JsonConverter(typeof(HealthStatusConverter))]
511455
public enum HealthStatus
512456
{

src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldLookup.g.cs

-195
This file was deleted.

0 commit comments

Comments
 (0)