Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1189b4e

Browse files
committedFeb 29, 2024·
nit
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
1 parent 1c341a7 commit 1189b4e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎src/main/java/org/opensearch/neuralsearch/query/ModelInferenceQueryBuilder.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@
88
* Query builders which calls ml-commons API to do model inference.
99
* The model inference result is used for search on target field.
1010
*/
11-
1211
public interface ModelInferenceQueryBuilder {
1312
/**
1413
* Get the model id used by ml-commons model inference. Return null if the model id is absent.
1514
*/
1615
public String modelId();
1716

1817
/**
19-
* Set a new model id for the query builder.
20-
*/
18+
* Set a new model id for the query builder.
19+
*/
2120
public ModelInferenceQueryBuilder modelId(String modelId);
2221

2322
/**
24-
* Get the field name for search.
25-
*/
23+
* Get the field name for search.
24+
*/
2625
public String fieldName();
2726
}

‎src/test/java/org/opensearch/neuralsearch/processor/NeuralQueryEnricherProcessorIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
import org.opensearch.neuralsearch.BaseNeuralSearchIT;
2424
import org.opensearch.neuralsearch.query.HybridQueryBuilder;
2525
import org.opensearch.neuralsearch.query.NeuralQueryBuilder;
26+
import org.opensearch.neuralsearch.query.NeuralSparseQueryBuilder;
2627

2728
import com.google.common.primitives.Floats;
2829

2930
import lombok.SneakyThrows;
30-
import org.opensearch.neuralsearch.query.NeuralSparseQueryBuilder;
3131

3232
public class NeuralQueryEnricherProcessorIT extends BaseNeuralSearchIT {
3333

0 commit comments

Comments
 (0)
Please sign in to comment.