Skip to content

Commit 67e1f8d

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent e99b510 commit 67e1f8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/queries/SemanticQueryBuilderTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111

1212
import org.apache.lucene.document.Document;
1313
import org.apache.lucene.document.Field;
14-
import org.apache.lucene.document.FloatDocValuesField;
1514
import org.apache.lucene.document.TextField;
1615
import org.apache.lucene.search.BooleanClause;
1716
import org.apache.lucene.search.BooleanQuery;
18-
import org.apache.lucene.search.BoostQuery;
1917
import org.apache.lucene.search.KnnByteVectorQuery;
2018
import org.apache.lucene.search.KnnFloatVectorQuery;
2119
import org.apache.lucene.search.MatchNoDocsQuery;
@@ -87,7 +85,6 @@
8785

8886
import static org.apache.lucene.search.BooleanClause.Occur.FILTER;
8987
import static org.apache.lucene.search.BooleanClause.Occur.MUST;
90-
import static org.apache.lucene.search.BooleanClause.Occur.SHOULD;
9188
import static org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfig.DEFAULT_RESULTS_FIELD;
9289
import static org.hamcrest.Matchers.equalTo;
9390
import static org.hamcrest.Matchers.instanceOf;
@@ -423,7 +420,8 @@ private static SourceToParse buildSemanticTextFieldWithInferenceResults(
423420
}
424421

425422
private static MinimalServiceSettings getModelSettingsForInferenceResultType(
426-
InferenceResultType inferenceResultType, @Nullable DenseVectorFieldMapper.ElementType denseVectorElementType
423+
InferenceResultType inferenceResultType,
424+
@Nullable DenseVectorFieldMapper.ElementType denseVectorElementType
427425
) {
428426
return switch (inferenceResultType) {
429427
case NONE -> null;

0 commit comments

Comments
 (0)