File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lucene/core/src/java/org/apache/lucene/search Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class KnnFloatVectorQuery extends AbstractKnnVectorQuery {
4747
4848 private static final TopDocs NO_RESULTS = TopDocsCollector .EMPTY_TOPDOCS ;
4949
50- final float [] target ;
50+ private final float [] target ;
5151
5252 /**
5353 * Find the <code>k</code> nearest documents to the target vector according to the vectors in the
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public class TwoPhaseKnnVectorQuery extends KnnFloatVectorQuery {
3636
3737 private final int originalK ;
3838 private final double oversample ;
39+ private final float [] target ;
3940
4041 /**
4142 * Find the <code>k</code> nearest documents to the target vector according to the vectors in the
@@ -55,6 +56,7 @@ public TwoPhaseKnnVectorQuery(
5556 if (oversample < 0 ) {
5657 throw new IllegalArgumentException ("oversample must be non-negative, got " + oversample );
5758 }
59+ this .target = target ;
5860 this .originalK = k ;
5961 this .oversample = oversample ;
6062 }
You can’t perform that action at this time.
0 commit comments