File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/src/internalClusterTest/java/org/elasticsearch/index/store Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
import org .apache .lucene .store .IndexOutput ;
18
18
import org .apache .lucene .tests .util .LuceneTestCase ;
19
19
import org .elasticsearch .common .settings .Settings ;
20
+ import org .elasticsearch .core .Strings ;
20
21
import org .elasticsearch .plugins .Plugin ;
21
22
import org .elasticsearch .search .vectors .KnnSearchBuilder ;
22
23
import org .elasticsearch .search .vectors .VectorData ;
@@ -76,7 +77,7 @@ private String indexVectors(boolean directIO) {
76
77
String type = randomFrom ("bbq_hnsw" , "bbq_disk" );
77
78
assertAcked (
78
79
prepareCreate (indexName ).setSettings (Settings .builder ().put (InternalSettingsPlugin .USE_COMPOUND_FILE .getKey (), false ))
79
- .setMapping ("""
80
+ .setMapping (Strings . format ( """
80
81
{
81
82
"properties": {
82
83
"fooVector": {
@@ -92,7 +93,7 @@ private String indexVectors(boolean directIO) {
92
93
}
93
94
}
94
95
}
95
- """ . formatted ( type , directIO ))
96
+ """ , type , directIO ))
96
97
);
97
98
ensureGreen (indexName );
98
99
You can’t perform that action at this time.
0 commit comments