Skip to content

Commit b5c52da

Browse files
committed
Merge
1 parent 69f9228 commit b5c52da

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

server/src/test/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldTypeTests.java

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)