Skip to content

Commit 730191c

Browse files
authored
Correct IndexType test for dense_vector with no index (#136208)
Fixes #136202
1 parent dcec9ce commit 730191c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.elasticsearch.index.codec.vectors.diskbbq.ES920DiskBBQVectorsFormat;
3535
import org.elasticsearch.index.mapper.DocumentMapper;
3636
import org.elasticsearch.index.mapper.DocumentParsingException;
37-
import org.elasticsearch.index.mapper.IndexType;
3837
import org.elasticsearch.index.mapper.LuceneDocument;
3938
import org.elasticsearch.index.mapper.MappedFieldType;
4039
import org.elasticsearch.index.mapper.MapperBuilderContext;
@@ -1466,7 +1465,7 @@ protected void assertSearchable(MappedFieldType fieldType) {
14661465
if (indexed) {
14671466
assertTrue(fieldType.indexType().hasVectors());
14681467
} else {
1469-
assertThat(fieldType.indexType(), equalTo(IndexType.NONE));
1468+
assertTrue(fieldType.indexType().hasOnlyDocValues());
14701469
}
14711470
assertEquals(fieldType.isSearchable(), indexed);
14721471
}

0 commit comments

Comments
 (0)