Skip to content

Commit fed0223

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 55850ba commit fed0223

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

server/src/main/java/org/elasticsearch/action/search/SearchShardsRequest.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,15 @@ public void writeTo(StreamOutput out) throws IOException {
7878
super.writeTo(out);
7979
out.writeStringArray(indices);
8080
indicesOptions.writeIndicesOptions(out);
81-
out.writeOptionalNamedWriteable(
82-
query == null || query.supportsVersion(out.getTransportVersion()) ? query :
83-
/*
84-
* The remote node doesn't support the query we're sending. If this were only
85-
* used for _search this could just fail, but for ESQL it's much more convenient
86-
* if it pretends that the query is MatchAll. ESQL will frequently be able to
87-
* perform the document filtering on the data node in its engine. Slowly.
88-
* But correctly.
89-
*/
90-
new MatchAllQueryBuilder());
81+
out.writeOptionalNamedWriteable(query == null || query.supportsVersion(out.getTransportVersion()) ? query :
82+
/*
83+
* The remote node doesn't support the query we're sending. If this were only
84+
* used for _search this could just fail, but for ESQL it's much more convenient
85+
* if it pretends that the query is MatchAll. ESQL will frequently be able to
86+
* perform the document filtering on the data node in its engine. Slowly.
87+
* But correctly.
88+
*/
89+
new MatchAllQueryBuilder());
9190
out.writeOptionalString(routing);
9291
out.writeOptionalString(preference);
9392
out.writeBoolean(allowPartialSearchResults);

x-pack/plugin/esql/qa/server/multi-clusters/src/javaRestTest/java/org/elasticsearch/xpack/esql/ccq/MultiClustersIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
import static org.elasticsearch.test.MapMatcher.assertMap;
4242
import static org.elasticsearch.xpack.esql.ccq.Clusters.REMOTE_CLUSTER_NAME;
4343
import static org.hamcrest.Matchers.any;
44+
import static org.hamcrest.Matchers.anyOf;
4445
import static org.hamcrest.Matchers.equalTo;
4546
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
4647
import static org.hamcrest.Matchers.hasKey;
47-
import static org.hamcrest.Matchers.anyOf;
4848
import static org.hamcrest.Matchers.is;
4949
import static org.hamcrest.Matchers.nullValue;
5050

0 commit comments

Comments
 (0)