Skip to content

Commit e4ef60f

Browse files
committed
Merge remote-tracking branch 'carlosdelest/non-issue/esql-knn-exact-search-non-pushed' into non-issue/esql-knn-exact-search-non-pushed
# Conflicts: # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/querydsl/query/KnnQuery.java
2 parents 38cfe1d + 3e68d71 commit e4ef60f

File tree

2 files changed

+2
-3
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql

2 files changed

+2
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/Knn.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public Knn(
118118
name = "min_candidates",
119119
type = "integer",
120120
valueHint = { "10" },
121-
description = "The minimum number of nearest neighbor candidates to consider per shard while doing knn search. " +
122-
" KNN may use a higher number of candidates in case the query can't use a approximate results. "
121+
description = "The minimum number of nearest neighbor candidates to consider per shard while doing knn search. "
122+
+ " KNN may use a higher number of candidates in case the query can't use a approximate results. "
123123
+ "Cannot exceed 10,000. Increasing min_candidates tends to improve the accuracy of the final results. "
124124
+ "Defaults to 1.5 * LIMIT used for the query."
125125
),

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushLimitToKnn.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.elasticsearch.xpack.esql.plan.logical.Limit;
1717
import org.elasticsearch.xpack.esql.plan.logical.LogicalPlan;
1818
import org.elasticsearch.xpack.esql.plan.logical.TopN;
19-
import org.elasticsearch.xpack.esql.plan.logical.UnaryPlan;
2019
import org.elasticsearch.xpack.esql.plan.logical.inference.Rerank;
2120

2221
/**

0 commit comments

Comments
 (0)