This commit is contained in:
parent
8d1756cd12
commit
e79894aa52
|
@ -75,7 +75,7 @@ public class QueryExplanation implements Streamable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFrom(StreamInput in) throws IOException {
|
public void readFrom(StreamInput in) throws IOException {
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||||
index = in.readOptionalString();
|
index = in.readOptionalString();
|
||||||
} else {
|
} else {
|
||||||
index = in.readString();
|
index = in.readString();
|
||||||
|
@ -92,7 +92,7 @@ public class QueryExplanation implements Streamable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeTo(StreamOutput out) throws IOException {
|
public void writeTo(StreamOutput out) throws IOException {
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
|
||||||
out.writeOptionalString(index);
|
out.writeOptionalString(index);
|
||||||
} else {
|
} else {
|
||||||
out.writeString(index);
|
out.writeString(index);
|
||||||
|
|
Loading…
Reference in New Issue