Skip to content

Commit f92af06

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix-replace-missing-fields-with-null
2 parents ec5cbdb + b563145 commit f92af06

File tree

71 files changed

+1531
-1200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1531
-1200
lines changed

build-conventions/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ dependencies {
7777
api buildLibs.apache.rat
7878
compileOnly buildLibs.checkstyle
7979
constraints {
80-
api("org.eclipse.platform:org.eclipse.osgi:3.18.500") {
80+
api("org.eclipse.platform:org.eclipse.osgi:3.18.300") {
8181
because("Use the same version as we do in spotless gradle plugin at runtime")
8282
}
8383
}

docs/changelog/126038.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 126038
2+
summary: Mark `rescore_vector` as generally available
3+
area: Vector Search
4+
type: enhancement
5+
issues: []

docs/reference/elasticsearch/mapping-reference/dense-vector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ $$$dense-vector-index-options$$$
288288
: (Optional, float) Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat` index types. The confidence interval to use when quantizing the vectors. Can be any value between and including `0.90` and `1.0` or exactly `0`. When the value is `0`, this indicates that dynamic quantiles should be calculated for optimized quantization. When between `0.90` and `1.0`, this value restricts the values used when calculating the quantization thresholds. For example, a value of `0.95` will only use the middle 95% of the values when calculating the quantization thresholds (e.g. the highest and lowest 2.5% of values will be ignored). Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4` for dynamic quantile calculation.
289289

290290
`rescore_vector`
291-
: (Optional, object) Functionality in [preview]. An optional section that configures automatic vector rescoring on knn queries for the given field. Only applicable to quantized index types.
291+
: (Optional, object) An optional section that configures automatic vector rescoring on knn queries for the given field. Only applicable to quantized index types.
292292
:::::{dropdown} Properties of `rescore_vector`
293293
`oversample`
294294
: (required, float) The amount to oversample the search results by. This value should be greater than `1.0` and less than `10.0` or exactly `0` to indicate no oversampling & rescoring should occur. The higher the value, the more vectors will be gathered and rescored with the raw values per shard.

docs/reference/elasticsearch/rest-apis/retrievers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ A kNN retriever returns top documents from a [k-nearest neighbor search (kNN)](d
198198

199199

200200
`rescore_vector`
201-
: (Optional, object) Functionality in [preview]. Apply oversampling and rescoring to quantized vectors.
201+
: (Optional, object) Apply oversampling and rescoring to quantized vectors.
202202

203203
::::{note}
204204
Rescoring only makes sense for quantized vectors; when [quantization](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) is not used, the original vectors are used for scoring. Rescore option will be ignored for non-quantized `dense_vector` fields.

docs/reference/query-languages/query-dsl/query-dsl-knn-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The filter is a pre-filter, meaning that it is applied **during** the approximat
9898

9999

100100
`rescore_vector`
101-
: (Optional, object) Functionality in [preview]. Apply oversampling and rescoring to quantized vectors.
101+
: (Optional, object) Apply oversampling and rescoring to quantized vectors.
102102

103103
::::{note}
104104
Rescoring only makes sense for quantized vectors; when [quantization](/reference/elasticsearch/mapping-reference/dense-vector.md#dense-vector-quantization) is not used, the original vectors are used for scoring. Rescore option will be ignored for non-quantized `dense_vector` fields.

gradle/build.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ snakeyaml = { group = "org.yaml", name = "snakeyaml", version = { strictly = "2.
4343
spock-core = { group = "org.spockframework", name="spock-core", version.ref="spock" }
4444
spock-junit4 = { group = "org.spockframework", name="spock-junit4", version.ref="spock" }
4545
spock-platform = { group = "org.spockframework", name="spock-bom", version.ref="spock" }
46-
spotless-plugin = "com.diffplug.spotless:spotless-plugin-gradle:7.0.2"
46+
spotless-plugin = "com.diffplug.spotless:spotless-plugin-gradle:6.25.0"
4747
wiremock = "com.github.tomakehurst:wiremock-jre8-standalone:2.23.2"
4848
xmlunit-core = "org.xmlunit:xmlunit-core:2.8.2"
4949

gradle/verification-metadata.xml

Lines changed: 278 additions & 68 deletions
Large diffs are not rendered by default.

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,9 @@ tests:
380380
- class: org.elasticsearch.search.CCSDuelIT
381381
method: testTerminateAfter
382382
issue: https://github.com/elastic/elasticsearch/issues/126085
383-
- class: org.elasticsearch.index.mapper.blockloader.KeywordFieldBlockLoaderTests
384-
method: testBlockLoaderForFieldInObject {preference=Params[syntheticSource=false, preference=DOC_VALUES]}
385-
issue: https://github.com/elastic/elasticsearch/issues/126088
386383
- class: org.elasticsearch.search.sort.GeoDistanceIT
387384
method: testDistanceSortingWithUnmappedField
388385
issue: https://github.com/elastic/elasticsearch/issues/126118
389-
- class: org.elasticsearch.index.mapper.blockloader.KeywordFieldBlockLoaderTests
390-
method: testBlockLoader {preference=Params[syntheticSource=false, preference=DOC_VALUES]}
391-
issue: https://github.com/elastic/elasticsearch/issues/126121
392386
- class: org.elasticsearch.search.basic.SearchWithRandomDisconnectsIT
393387
method: testSearchWithRandomDisconnects
394388
issue: https://github.com/elastic/elasticsearch/issues/122707

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ static TransportVersion def(int id) {
156156
public static final TransportVersion INFERENCE_MODEL_REGISTRY_METADATA_8_19 = def(8_841_0_13);
157157
public static final TransportVersion INTRODUCE_LIFECYCLE_TEMPLATE_8_19 = def(8_841_0_14);
158158
public static final TransportVersion RERANK_COMMON_OPTIONS_ADDED_8_19 = def(8_841_0_15);
159+
public static final TransportVersion REMOTE_EXCEPTION_8_19 = def(8_841_0_16);
159160
public static final TransportVersion INITIAL_ELASTICSEARCH_9_0 = def(9_000_0_00);
160161
public static final TransportVersion REMOVE_SNAPSHOT_FAILURES_90 = def(9_000_0_01);
161162
public static final TransportVersion TRANSPORT_STATS_HANDLING_TIME_REQUIRED_90 = def(9_000_0_02);

server/src/test/java/org/elasticsearch/common/util/concurrent/ThreadContextTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ public void testResponseHeaders() {
651651
}
652652
}
653653

654-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/112256")
655654
public void testDropWarningsExceedingMaxSettings() {
656655
Settings settings = Settings.builder()
657656
.put(HttpTransportSettings.SETTING_HTTP_MAX_WARNING_HEADER_COUNT.getKey(), 1)

0 commit comments

Comments
 (0)