Skip to content

Commit 10f3a86

Browse files
committed
Cleanup from PR feedback
1 parent 589f657 commit 10f3a86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.elasticsearch.common.compress.CompressedXContent;
3434
import org.elasticsearch.common.lucene.search.Queries;
3535
import org.elasticsearch.common.settings.Settings;
36-
import org.elasticsearch.common.xcontent.support.XContentMapValues;
3736
import org.elasticsearch.core.CheckedConsumer;
3837
import org.elasticsearch.index.IndexVersion;
3938
import org.elasticsearch.index.mapper.DocumentMapper;
@@ -1066,8 +1065,8 @@ public void testExistsQueryDenseVector() throws IOException {
10661065

10671066
private static DenseVectorFieldMapper.IndexOptions defaultDenseVectorIndexOptions() {
10681067
// These are the default index options for dense_vector fields, and used for semantic_text fields incompatible with BBQ.
1069-
int m = XContentMapValues.nodeIntegerValue(Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN);
1070-
int efConstruction = XContentMapValues.nodeIntegerValue(Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH);
1068+
int m = Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN;
1069+
int efConstruction = Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH;
10711070
return new DenseVectorFieldMapper.Int8HnswIndexOptions(m, efConstruction, null, null);
10721071
}
10731072

0 commit comments

Comments
 (0)