Skip to content

Commit 7df3d02

Browse files
authored
Merge branch 'main' into 2025/11/28/S3RepositoryAnalysisStrongMpusRestIT-third-party
2 parents fcb9573 + e46f211 commit 7df3d02

File tree

12 files changed

+42
-23
lines changed

12 files changed

+42
-23
lines changed

build-conventions/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
plugins {
11-
id "com.gradle.develocity" version "4.1.1"
11+
id "com.gradle.develocity" version "4.2.2"
1212
}
1313

1414
rootProject.name = 'build-conventions'

build-tools-internal/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pluginManagement {
99
}
1010

1111
plugins {
12-
id "com.gradle.develocity" version "4.1.1"
12+
id "com.gradle.develocity" version "4.2.2"
1313
}
1414

1515
dependencyResolutionManagement {

build-tools/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginManagement {
1010
includeBuild "../build-conventions"
1111
}
1212
plugins {
13-
id "com.gradle.develocity" version "4.1.1"
13+
id "com.gradle.develocity" version "4.2.2"
1414
}
1515
include 'reaper'
1616

docs/reference/elasticsearch/mapping-reference/mapping-source-field.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ An expert-only feature is the ability to prune the contents of the `_source` fie
356356
Removing fields from the `_source` has similar downsides to disabling `_source`, especially the fact that you cannot reindex documents from one Elasticsearch index to another. Consider using [source filtering](/reference/elasticsearch/rest-apis/retrieve-selected-fields.md#source-filtering) instead.
357357
::::
358358

359+
::::{note}
360+
Source pruning is not available in {{serverless-short}}
361+
::::
359362

360363
The `includes`/`excludes` parameters (which also accept wildcards) can be used as follows:
361364

gradle/build.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ checkstyle = "com.puppycrawl.tools:checkstyle:11.0.1"
1717
commmons-io = "commons-io:commons-io:2.2"
1818
docker-compose = "com.avast.gradle:gradle-docker-compose-plugin:0.17.5"
1919
forbiddenApis = "de.thetaphi:forbiddenapis:3.8"
20-
gradle-enterprise = "com.gradle:develocity-gradle-plugin:4.1.1"
20+
gradle-enterprise = "com.gradle:develocity-gradle-plugin:4.2.2"
2121
hamcrest = "org.hamcrest:hamcrest:3.0"
2222
httpcore5 = "org.apache.httpcomponents.core5:httpcore5:5.3.3"
2323
httpclient5 = "org.apache.httpcomponents.client5:httpclient5:5.4.2"

gradle/verification-metadata.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,9 @@
964964
<sha256 value="48234cd74e35d91a31a683820a35b5b6d11b55527f32a5b162c6757408b95d7a" origin="Generated by Gradle"/>
965965
</artifact>
966966
</component>
967-
<component group="com.gradle" name="develocity-gradle-plugin" version="4.1.1">
968-
<artifact name="develocity-gradle-plugin-4.1.1.jar">
969-
<sha256 value="21a509cfff19aad0eb23dcc2a1979345708ffa61d6f4488f8956caae51cb55ff" origin="Generated by Gradle"/>
967+
<component group="com.gradle" name="develocity-gradle-plugin" version="4.2.2">
968+
<artifact name="develocity-gradle-plugin-4.2.2.jar">
969+
<sha256 value="3e45a8c18b34a8dddeb185c3e7030728634aaf31b9762052e5dae87f3d597fba" origin="Generated by Gradle"/>
970970
</artifact>
971971
</component>
972972
<component group="com.gradleup.gratatouille" name="gratatouille-runtime" version="0.0.8">

libs/x-content/src/main/java/org/elasticsearch/xcontent/XContentParser.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,12 @@ <T> Map<String, T> map(Supplier<Map<String, T>> mapFactory, CheckedFunction<XCon
225225
* The callback to notify when parsing encounters a deprecated field.
226226
*/
227227
DeprecationHandler getDeprecationHandler();
228+
229+
/**
230+
* Switch to a different underlying parser.
231+
* Typically, that's a noop but some filter parsers might want to wrap the underlying parser again.
232+
*/
233+
default XContentParser switchParser(XContentParser parser) throws IOException {
234+
return parser;
235+
}
228236
}

plugins/examples/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
plugins {
11-
id "com.gradle.develocity" version "4.1.1"
11+
id "com.gradle.develocity" version "4.2.2"
1212
}
1313

1414
// Include all subdirectories as example projects

server/src/main/java/org/elasticsearch/index/codec/vectors/diskbbq/next/ESNextDiskBBQVectorsWriter.java

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.elasticsearch.index.codec.vectors.diskbbq.QuantizedVectorValues;
3838
import org.elasticsearch.logging.LogManager;
3939
import org.elasticsearch.logging.Logger;
40-
import org.elasticsearch.simdvec.ES91OSQVectorsScorer;
4140
import org.elasticsearch.simdvec.ES92Int7VectorsScorer;
4241
import org.elasticsearch.simdvec.ESNextOSQVectorsScorer;
4342

@@ -120,7 +119,11 @@ public CentroidOffsetAndLength buildAndWritePostingsLists(
120119
// write the posting lists
121120
final PackedLongValues.Builder offsets = PackedLongValues.monotonicBuilder(PackedInts.COMPACT);
122121
final PackedLongValues.Builder lengths = PackedLongValues.monotonicBuilder(PackedInts.COMPACT);
123-
DiskBBQBulkWriter bulkWriter = DiskBBQBulkWriter.fromBitSize(quantEncoding.bits(), ES91OSQVectorsScorer.BULK_SIZE, postingsOutput);
122+
DiskBBQBulkWriter bulkWriter = DiskBBQBulkWriter.fromBitSize(
123+
quantEncoding.bits(),
124+
ESNextOSQVectorsScorer.BULK_SIZE,
125+
postingsOutput
126+
);
124127
OnHeapQuantizedVectors onHeapQuantizedVectors = new OnHeapQuantizedVectors(
125128
floatVectorValues,
126129
quantEncoding,
@@ -156,11 +159,16 @@ public CentroidOffsetAndLength buildAndWritePostingsLists(
156159
docDeltas[j] = j == 0 ? docIds[clusterOrds[j]] : docIds[clusterOrds[j]] - docIds[clusterOrds[j - 1]];
157160
}
158161
onHeapQuantizedVectors.reset(centroid, size, ord -> cluster[clusterOrds[ord]]);
159-
byte encoding = idsWriter.calculateBlockEncoding(i -> docDeltas[i], size, ES91OSQVectorsScorer.BULK_SIZE);
162+
byte encoding = idsWriter.calculateBlockEncoding(i -> docDeltas[i], size, ESNextOSQVectorsScorer.BULK_SIZE);
160163
postingsOutput.writeByte(encoding);
161164
bulkWriter.writeVectors(onHeapQuantizedVectors, i -> {
162165
// for vector i we write `bulk` size docs or the remaining docs
163-
idsWriter.writeDocIds(d -> docDeltas[i + d], Math.min(ES91OSQVectorsScorer.BULK_SIZE, size - i), encoding, postingsOutput);
166+
idsWriter.writeDocIds(
167+
d -> docDeltas[i + d],
168+
Math.min(ESNextOSQVectorsScorer.BULK_SIZE, size - i),
169+
encoding,
170+
postingsOutput
171+
);
164172
});
165173
lengths.add(postingsOutput.getFilePointer() - fileOffset - offset);
166174
}
@@ -275,7 +283,7 @@ public CentroidOffsetAndLength buildAndWritePostingsLists(
275283
);
276284
DiskBBQBulkWriter bulkWriter = DiskBBQBulkWriter.fromBitSize(
277285
quantEncoding.bits(),
278-
ES91OSQVectorsScorer.BULK_SIZE,
286+
ESNextOSQVectorsScorer.BULK_SIZE,
279287
postingsOutput
280288
);
281289
final ByteBuffer buffer = ByteBuffer.allocate(fieldInfo.getVectorDimension() * Float.BYTES).order(ByteOrder.LITTLE_ENDIAN);
@@ -308,7 +316,7 @@ public CentroidOffsetAndLength buildAndWritePostingsLists(
308316
for (int j = 0; j < size; j++) {
309317
docDeltas[j] = j == 0 ? docIds[clusterOrds[j]] : docIds[clusterOrds[j]] - docIds[clusterOrds[j - 1]];
310318
}
311-
byte encoding = idsWriter.calculateBlockEncoding(i -> docDeltas[i], size, ES91OSQVectorsScorer.BULK_SIZE);
319+
byte encoding = idsWriter.calculateBlockEncoding(i -> docDeltas[i], size, ESNextOSQVectorsScorer.BULK_SIZE);
312320
postingsOutput.writeByte(encoding);
313321
offHeapQuantizedVectors.reset(size, ord -> isOverspill[clusterOrds[ord]], ord -> cluster[clusterOrds[ord]]);
314322
// write vectors

server/src/main/java/org/elasticsearch/index/mapper/DotExpandingXContentParser.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
*/
3636
class DotExpandingXContentParser extends FilterXContentParserWrapper {
3737

38-
static boolean isInstance(XContentParser parser) {
39-
return parser instanceof WrappingParser;
40-
}
41-
4238
private static final class WrappingParser extends FilterXContentParser {
4339

4440
private final ContentPath contentPath;
@@ -52,6 +48,11 @@ private static final class WrappingParser extends FilterXContentParser {
5248
}
5349
}
5450

51+
@Override
52+
public XContentParser switchParser(XContentParser parser) throws IOException {
53+
return new WrappingParser(parser, contentPath);
54+
}
55+
5556
@Override
5657
public Token nextToken() throws IOException {
5758
Token token;

0 commit comments

Comments
 (0)