File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/queries Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1111
1212import org .apache .lucene .document .Document ;
1313import org .apache .lucene .document .Field ;
14- import org .apache .lucene .document .FloatDocValuesField ;
1514import org .apache .lucene .document .TextField ;
1615import org .apache .lucene .search .BooleanClause ;
1716import org .apache .lucene .search .BooleanQuery ;
18- import org .apache .lucene .search .BoostQuery ;
1917import org .apache .lucene .search .KnnByteVectorQuery ;
2018import org .apache .lucene .search .KnnFloatVectorQuery ;
2119import org .apache .lucene .search .MatchNoDocsQuery ;
8785
8886import static org .apache .lucene .search .BooleanClause .Occur .FILTER ;
8987import static org .apache .lucene .search .BooleanClause .Occur .MUST ;
90- import static org .apache .lucene .search .BooleanClause .Occur .SHOULD ;
9188import static org .elasticsearch .xpack .core .ml .inference .trainedmodel .InferenceConfig .DEFAULT_RESULTS_FIELD ;
9289import static org .hamcrest .Matchers .equalTo ;
9390import 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 ;
You can’t perform that action at this time.
0 commit comments