File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
server/src/test/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 3434import org .elasticsearch .index .codec .vectors .diskbbq .ES920DiskBBQVectorsFormat ;
3535import org .elasticsearch .index .mapper .DocumentMapper ;
3636import org .elasticsearch .index .mapper .DocumentParsingException ;
37- import org .elasticsearch .index .mapper .IndexType ;
3837import org .elasticsearch .index .mapper .LuceneDocument ;
3938import org .elasticsearch .index .mapper .MappedFieldType ;
4039import 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 }
You can’t perform that action at this time.
0 commit comments