Skip to content

Commit 5db2686

Browse files
fix linting issues
1 parent b85abda commit 5db2686

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/queries/SemanticMatchQueryRewriteInterceptor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ protected String getQuery(QueryBuilder queryBuilder) {
3636

3737
@Override
3838
protected QueryBuilder buildInferenceQuery(QueryBuilder queryBuilder, InferenceIndexInformationForField indexInformation) {
39-
SemanticQueryBuilder semanticQueryBuilder = new SemanticQueryBuilder(
40-
indexInformation.fieldName(),
41-
getQuery(queryBuilder),
42-
false
43-
);
39+
SemanticQueryBuilder semanticQueryBuilder = new SemanticQueryBuilder(indexInformation.fieldName(), getQuery(queryBuilder), false);
4440
semanticQueryBuilder.boost(queryBuilder.boost());
4541
semanticQueryBuilder.queryName(queryBuilder.queryName());
4642
return semanticQueryBuilder;

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/queries/SemanticQueryRewriteInterceptor.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ protected QueryBuilder createSubQueryForIndices(Collection<String> indices, Quer
114114
return boolQueryBuilder;
115115
}
116116

117-
protected QueryBuilder createSemanticSubQuery(Collection<String> indices, String fieldName, String value, Float boost, String queryName) {
117+
protected QueryBuilder createSemanticSubQuery(
118+
Collection<String> indices,
119+
String fieldName,
120+
String value,
121+
Float boost,
122+
String queryName
123+
) {
118124
SemanticQueryBuilder semanticQueryBuilder = new SemanticQueryBuilder(fieldName, value, true);
119125
semanticQueryBuilder.boost(boost);
120126
semanticQueryBuilder.queryName(queryName);

0 commit comments

Comments
 (0)