[#27380] Adjust bwc for multi_match lenient option
This commit is contained in:
parent
08a257327f
commit
c91b7cad83
|
@ -225,7 +225,7 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
|
||||||
fuzzyRewrite = in.readOptionalString();
|
fuzzyRewrite = in.readOptionalString();
|
||||||
useDisMax = in.readOptionalBoolean();
|
useDisMax = in.readOptionalBoolean();
|
||||||
tieBreaker = in.readOptionalFloat();
|
tieBreaker = in.readOptionalFloat();
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
lenient = in.readOptionalBoolean();
|
lenient = in.readOptionalBoolean();
|
||||||
} else {
|
} else {
|
||||||
lenient = in.readBoolean();
|
lenient = in.readBoolean();
|
||||||
|
@ -257,7 +257,7 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
|
||||||
out.writeOptionalString(fuzzyRewrite);
|
out.writeOptionalString(fuzzyRewrite);
|
||||||
out.writeOptionalBoolean(useDisMax);
|
out.writeOptionalBoolean(useDisMax);
|
||||||
out.writeOptionalFloat(tieBreaker);
|
out.writeOptionalFloat(tieBreaker);
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
out.writeOptionalBoolean(lenient);
|
out.writeOptionalBoolean(lenient);
|
||||||
} else {
|
} else {
|
||||||
out.writeBoolean(lenient == null ? MatchQuery.DEFAULT_LENIENCY : lenient);
|
out.writeBoolean(lenient == null ? MatchQuery.DEFAULT_LENIENCY : lenient);
|
||||||
|
|
Loading…
Reference in New Issue