Skip to content

Commit 0b63778

Browse files
committed
cleanup
1 parent 7bc1890 commit 0b63778

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

server/src/main/java/org/elasticsearch/search/retriever/KnnRetrieverBuilder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ public static KnnRetrieverBuilder fromXContent(XContentParser parser, RetrieverP
115115
private final RescoreVectorBuilder rescoreVectorBuilder;
116116
private final Float similarity;
117117

118-
// FIXME: add ctors like this to the other builders
119-
// FIXME: from a testing standpoint should we replace this with the ctor below sometimes
120118
public KnnRetrieverBuilder(
121119
String field,
122120
float[] queryVector,

server/src/main/java/org/elasticsearch/search/vectors/KnnSearchBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public static KnnSearchBuilder.Builder fromXContent(XContentParser parser) throw
136136
* @param queryVector the query vector
137137
* @param k the final number of nearest neighbors to return as top hits
138138
* @param numCands the number of nearest neighbor candidates to consider per shard
139+
* @param visitPercentage percentage of the total number of vectors to visit per shard
139140
* @param rescoreVectorBuilder rescore vector information
140141
*/
141142
public KnnSearchBuilder(
@@ -166,6 +167,7 @@ public KnnSearchBuilder(
166167
* @param queryVector the query vector
167168
* @param k the final number of nearest neighbors to return as top hits
168169
* @param numCands the number of nearest neighbor candidates to consider per shard
170+
* @param visitPercentage percentage of the total number of vectors to visit per shard
169171
*/
170172
public KnnSearchBuilder(
171173
String field,
@@ -186,6 +188,7 @@ public KnnSearchBuilder(
186188
* @param queryVectorBuilder the query vector builder
187189
* @param k the final number of nearest neighbors to return as top hits
188190
* @param numCands the number of nearest neighbor candidates to consider per shard
191+
* @param visitPercentage percentage of the total number of vectors to visit per shard
189192
*/
190193
public KnnSearchBuilder(
191194
String field,

server/src/main/java/org/elasticsearch/search/vectors/KnnVectorQueryBuilder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,6 @@ protected Query doToQuery(SearchExecutionContext context) throws IOException {
567567
}
568568
}
569569
int adjustedNumCands = numCands == null ? Math.round(Math.min(NUM_CANDS_MULTIPLICATIVE_FACTOR * k, NUM_CANDS_LIMIT)) : numCands;
570-
571-
// FIXME: how do the other params interact with this?
572570
float adjustedVisitPercentage = visitPercentage == null ? 0.0f : visitPercentage;
573571

574572
if (fieldType == null) {

0 commit comments

Comments
 (0)