File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
server/src/test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -681,18 +681,12 @@ public void testRescoreOversampleQueryOverrides() {
681681
682682 public void testFilterSearchThreshold () {
683683 List <Tuple <DenseVectorFieldMapper .ElementType , Function <Query , KnnSearchStrategy >>> cases = List .of (
684- Tuple .tuple (
685- FLOAT ,
686- q -> q instanceof PatienceKnnVectorQuery patienceKnnVectorQuery ? null : ((ESKnnFloatVectorQuery ) q ).getStrategy ()
687- ),
688- Tuple .tuple (
689- BYTE ,
690- q -> q instanceof PatienceKnnVectorQuery patienceKnnVectorQuery ? null : ((ESKnnByteVectorQuery ) q ).getStrategy ()
691- ),
692- Tuple .tuple (
693- BIT ,
694- q -> q instanceof PatienceKnnVectorQuery patienceKnnVectorQuery ? null : ((ESKnnByteVectorQuery ) q ).getStrategy ()
695- )
684+ Tuple .tuple (FLOAT , q -> q instanceof PatienceKnnVectorQuery ?
685+ null : ((ESKnnFloatVectorQuery ) q ).getStrategy ()),
686+ Tuple .tuple (BYTE , q -> q instanceof PatienceKnnVectorQuery ?
687+ null : ((ESKnnByteVectorQuery ) q ).getStrategy ()),
688+ Tuple .tuple (BIT , q -> q instanceof PatienceKnnVectorQuery ?
689+ null : ((ESKnnByteVectorQuery ) q ).getStrategy ())
696690 );
697691 for (var tuple : cases ) {
698692 DenseVectorFieldType fieldType = new DenseVectorFieldType (
You can’t perform that action at this time.
0 commit comments