Skip to content

Commit

Permalink
Change class to final
Browse files Browse the repository at this point in the history
  • Loading branch information
dungba88 committed Dec 14, 2024
1 parent 4978012 commit 545f7e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class AbstractKnnVectorQuery extends Query {
/** the number of documents to find */
protected final int k;

/** the filter to executed before KNN search */
/** the filter to be executed. when the filter is applied is up to the underlying knn index */
private final Query filter;

public AbstractKnnVectorQuery(String field, int k, Query filter) {
Expand Down Expand Up @@ -115,7 +115,7 @@ private TopDocs searchLeaf(
return results;
}

// Execute the filter if any and perform KNN search at each segment.
// Perform kNN search for the provided LeafReaderContext applying filterWeight as necessary
private TopDocs getLeafResults(
LeafReaderContext ctx,
Weight filterWeight,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.apache.lucene.util.Bits;

/** Common utilities for ANN queries. */
class AnnQueryUtils {
final class AnnQueryUtils {

/** private constructor */
private AnnQueryUtils() {}
Expand Down

0 comments on commit 545f7e8

Please sign in to comment.