We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c519dd commit b34a73eCopy full SHA for b34a73e
x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/SemanticTextUpgradeIT.java
@@ -76,7 +76,7 @@ public void testSemanticTextOperations() throws Exception {
76
77
private void createAndPopulateIndex() throws IOException {
78
final String indexName = getIndexName();
79
- final String mapping = """
+ final String mapping = Strings.format("""
80
{
81
"properties": {
82
"%s": {
@@ -85,7 +85,7 @@ private void createAndPopulateIndex() throws IOException {
85
}
86
87
88
- """.formatted(SEMANTIC_TEXT_FIELD, SPARSE_MODEL.getInferenceEntityId());
+ """, SEMANTIC_TEXT_FIELD, SPARSE_MODEL.getInferenceEntityId());
89
90
CreateIndexResponse response = createIndex(
91
indexName,
0 commit comments