File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,7 @@ public void writeTo(StreamOutput out) throws IOException {
7878 super .writeTo (out );
7979 out .writeStringArray (indices );
8080 indicesOptions .writeIndicesOptions (out );
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 ());
81+ out .writeOptionalNamedWriteable (query );
9082 out .writeOptionalString (routing );
9183 out .writeOptionalString (preference );
9284 out .writeBoolean (allowPartialSearchResults );
You can’t perform that action at this time.
0 commit comments