Skip to content

Commit a766ad8

Browse files
committed
Fix filtering by index twice
1 parent 02b2f5e commit a766ad8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/queries/SemanticSparseVectorQueryRewriteInterceptor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ protected QueryBuilder buildCombinedInferenceAndNonInferenceQuery(
8080

8181
BoolQueryBuilder boolQueryBuilder = new BoolQueryBuilder();
8282
boolQueryBuilder.should(
83-
createSubQueryForIndices(
84-
indexInformation.nonInferenceIndices(),
85-
createSubQueryForIndices(indexInformation.nonInferenceIndices(), sparseVectorQueryBuilder)
86-
)
83+
createSubQueryForIndices(indexInformation.nonInferenceIndices(), sparseVectorQueryBuilder)
8784
);
8885
// We always perform nested subqueries on semantic_text fields, to support
8986
// sparse_vector queries using query vectors.

0 commit comments

Comments
 (0)