Skip to content

Commit 4a23c9c

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a3bb904 commit 4a23c9c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/search/SparseVectorQueryBuilder.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
import org.elasticsearch.common.io.stream.StreamOutput;
1919
import org.elasticsearch.core.Nullable;
2020
import org.elasticsearch.index.mapper.MappedFieldType;
21-
import org.elasticsearch.index.mapper.Mapper;
22-
import org.elasticsearch.index.mapper.Mapping;
23-
import org.elasticsearch.index.mapper.RootObjectMapper;
2421
import org.elasticsearch.index.mapper.vectors.SparseVectorFieldMapper;
2522
import org.elasticsearch.index.mapper.vectors.TokenPruningConfig;
2623
import org.elasticsearch.index.query.AbstractQueryBuilder;
@@ -240,8 +237,8 @@ protected Query doToQuery(SearchExecutionContext context) throws IOException {
240237

241238
// if the query options for pruning are not set, we need to check the index options for this field
242239
// and use those if set - however, only if the index was created after we added this support.
243-
if (ft.getClass().equals(SparseVectorFieldMapper.SparseVectorFieldType.class) &&
244-
context.indexVersionCreated().onOrAfter(SparseVectorFieldMapper.SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_VERSION)) {
240+
if (ft.getClass().equals(SparseVectorFieldMapper.SparseVectorFieldType.class)
241+
&& context.indexVersionCreated().onOrAfter(SparseVectorFieldMapper.SPARSE_VECTOR_PRUNING_INDEX_OPTIONS_VERSION)) {
245242
SparseVectorFieldMapper.SparseVectorFieldType asSVFieldType = (SparseVectorFieldMapper.SparseVectorFieldType) ft;
246243

247244
if (asSVFieldType.getIndexOptions() != null) {

0 commit comments

Comments
 (0)