Skip to content

Commit 0dbca60

Browse files
Updating settings string to variable and removed unused code
1 parent 922081d commit 0dbca60

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/SemanticTextIndexVersionIT.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void testSemanticText() throws Exception {
130130
.get()
131131
.getIndexToSettings()
132132
.get(indexName)
133-
.getAsVersionId("index.version.created", IndexVersion::fromId)
133+
.getAsVersionId(IndexMetadata.SETTING_VERSION_CREATED, IndexVersion::fromId)
134134
.id()
135135
);
136136

@@ -166,13 +166,6 @@ public void testSemanticText() throws Exception {
166166
response -> { assertHitCount(response, 1L); }
167167
);
168168

169-
Settings settings = client().admin()
170-
.indices()
171-
.prepareGetSettings(TimeValue.THIRTY_SECONDS, indexName)
172-
.get()
173-
.getIndexToSettings()
174-
.get(indexName);
175-
176169
// Semantic Search with highlighter
177170
SearchSourceBuilder sourceHighlighterBuilder = new SearchSourceBuilder().query(
178171
new SemanticQueryBuilder("semantic_field", "inference")

0 commit comments

Comments
 (0)