Skip to content

Commit 21323e4

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 501099d commit 21323e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@ protected QueryBuilder doRewrite(QueryRewriteContext queryRewriteContext) {
261261
// we need to check the index options for this field
262262
// and use those if set.
263263
SparseVectorFieldMapper sparseVectorFieldMapper = getSparseVectorFieldMapperForQueryRewrite(fieldName, queryRewriteContext);
264-
TokenPruningSet pruningOptions = setPruningConfigFromIndexIfNeeded(shouldPruneTokens, tokenPruningConfig, sparseVectorFieldMapper);
264+
TokenPruningSet pruningOptions = setPruningConfigFromIndexIfNeeded(
265+
shouldPruneTokens,
266+
tokenPruningConfig,
267+
sparseVectorFieldMapper
268+
);
265269

266270
return new SparseVectorQueryBuilder(
267271
fieldName,
@@ -451,7 +455,11 @@ private SparseVectorFieldMapper getSparseVectorFieldMapperForQueryRewrite(String
451455

452456
private record TokenPruningSet(boolean pruneTokens, TokenPruningConfig pruningConfig) {}
453457

454-
private TokenPruningSet setPruningConfigFromIndexIfNeeded(Boolean queryPruneTokens, TokenPruningConfig queryPruningConfig, SparseVectorFieldMapper fieldMapper) {
458+
private TokenPruningSet setPruningConfigFromIndexIfNeeded(
459+
Boolean queryPruneTokens,
460+
TokenPruningConfig queryPruningConfig,
461+
SparseVectorFieldMapper fieldMapper
462+
) {
455463
boolean doPruneTokens = false;
456464
TokenPruningConfig setTokenPruningConfig = queryPruningConfig;
457465
if (queryPruneTokens == null || queryPruningConfig == null) {

0 commit comments

Comments
 (0)