Skip to content

Commit 433329f

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 43fe1d1 commit 433329f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/lucene/LuceneTopNSourceOperator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,11 @@ static final class ScoringPerShardCollector extends PerShardCollector {
309309
}
310310
}
311311

312-
private static Function<ShardContext, Weight> weightFunction(Function<ShardContext, Query> queryFunction, List<SortBuilder<?>> sorts, boolean needsScore) {
312+
private static Function<ShardContext, Weight> weightFunction(
313+
Function<ShardContext, Query> queryFunction,
314+
List<SortBuilder<?>> sorts,
315+
boolean needsScore
316+
) {
313317
return ctx -> {
314318
final var query = queryFunction.apply(ctx);
315319
final var searcher = ctx.searcher();

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/planner/LocalExecutionPlannerTests.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,9 @@ private List<EsPhysicalOperationProviders.ShardContext> createShardContexts() th
270270
);
271271
for (int i = 0; i < numShards; i++) {
272272
shardContexts.add(
273-
new EsPhysicalOperationProviders.DefaultShardContext(
274-
i,
275-
createSearchExecutionContext(createMapperService(mapping(b -> {
276-
b.startObject("point").field("type", "geo_point").endObject();
277-
})), searcher),
278-
AliasFilter.EMPTY
279-
)
273+
new EsPhysicalOperationProviders.DefaultShardContext(i, createSearchExecutionContext(createMapperService(mapping(b -> {
274+
b.startObject("point").field("type", "geo_point").endObject();
275+
})), searcher), AliasFilter.EMPTY)
280276
);
281277
}
282278
releasables.add(searcher);

0 commit comments

Comments
 (0)