Skip to content

Commit 998b3b9

Browse files
committed
PR feedback
1 parent be9b7b4 commit 998b3b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.elasticsearch.common.bytes.BytesReference;
2828
import org.elasticsearch.common.xcontent.XContentHelper;
2929
import org.elasticsearch.common.xcontent.XContentParserUtils;
30-
import org.elasticsearch.common.xcontent.support.XContentMapValues;
3130
import org.elasticsearch.core.CheckedConsumer;
3231
import org.elasticsearch.core.Nullable;
3332
import org.elasticsearch.features.NodeFeature;
@@ -1077,8 +1076,8 @@ private static Mapper.Builder createEmbeddingsField(
10771076
static DenseVectorFieldMapper.IndexOptions defaultSemanticDenseIndexOptions() {
10781077
// As embedding models for text perform better with BBQ, we aggressively default semantic_text fields to use optimized index
10791078
// options outside of dense_vector defaults
1080-
int m = XContentMapValues.nodeIntegerValue(Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN);
1081-
int efConstruction = XContentMapValues.nodeIntegerValue(Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH);
1079+
int m = Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN;
1080+
int efConstruction = Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH;
10821081
DenseVectorFieldMapper.RescoreVector rescoreVector = new DenseVectorFieldMapper.RescoreVector(DEFAULT_RESCORE_OVERSAMPLE);
10831082
return new DenseVectorFieldMapper.BBQHnswIndexOptions(m, efConstruction, rescoreVector);
10841083
}

0 commit comments

Comments
 (0)