File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public SearchShardsResponse(StreamInput in) throws IOException {
6363 this .groups = in .readCollectionAsList (SearchShardsGroup ::new );
6464 this .nodes = in .readCollectionAsList (DiscoveryNode ::new );
6565 this .aliasFilters = in .readMap (AliasFilter ::readFrom );
66- if (in .getTransportVersion ().onOrAfter (ResolvedIndexExpressions .RESOLVED_INDEX_EXPRESSIONS )) {
66+ if (in .getTransportVersion ().supports (ResolvedIndexExpressions .RESOLVED_INDEX_EXPRESSIONS )) {
6767 this .resolvedIndexExpressions = in .readOptionalWriteable (ResolvedIndexExpressions ::new );
6868 } else {
6969 this .resolvedIndexExpressions = null ;
@@ -75,7 +75,7 @@ public void writeTo(StreamOutput out) throws IOException {
7575 out .writeCollection (groups );
7676 out .writeCollection (nodes );
7777 out .writeMap (aliasFilters , StreamOutput ::writeWriteable );
78- if (out .getTransportVersion ().onOrAfter (ResolvedIndexExpressions .RESOLVED_INDEX_EXPRESSIONS )) {
78+ if (out .getTransportVersion ().supports (ResolvedIndexExpressions .RESOLVED_INDEX_EXPRESSIONS )) {
7979 out .writeOptionalWriteable (resolvedIndexExpressions );
8080 }
8181 }
You can’t perform that action at this time.
0 commit comments