#26870 change bwc version for fuzzy_transpositions to 6.1 after backport
This commit is contained in:
parent
2d409a912f
commit
24359c1a75
|
@ -228,8 +228,6 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
|
||||||
zeroTermsQuery = MatchQuery.ZeroTermsQuery.readFromStream(in);
|
zeroTermsQuery = MatchQuery.ZeroTermsQuery.readFromStream(in);
|
||||||
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
autoGenerateSynonymsPhraseQuery = in.readBoolean();
|
autoGenerateSynonymsPhraseQuery = in.readBoolean();
|
||||||
}
|
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
fuzzyTranspositions = in.readBoolean();
|
fuzzyTranspositions = in.readBoolean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -258,8 +256,6 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
|
||||||
zeroTermsQuery.writeTo(out);
|
zeroTermsQuery.writeTo(out);
|
||||||
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
|
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
|
||||||
}
|
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
out.writeBoolean(fuzzyTranspositions);
|
out.writeBoolean(fuzzyTranspositions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,8 +229,6 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
||||||
}
|
}
|
||||||
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
autoGenerateSynonymsPhraseQuery = in.readBoolean();
|
autoGenerateSynonymsPhraseQuery = in.readBoolean();
|
||||||
}
|
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
fuzzyTranspositions = in.readBoolean();
|
fuzzyTranspositions = in.readBoolean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -287,8 +285,6 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
|
||||||
}
|
}
|
||||||
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
|
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
|
||||||
}
|
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
out.writeBoolean(fuzzyTranspositions);
|
out.writeBoolean(fuzzyTranspositions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,8 +191,6 @@ public class SimpleQueryStringBuilder extends AbstractQueryBuilder<SimpleQuerySt
|
||||||
}
|
}
|
||||||
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
settings.autoGenerateSynonymsPhraseQuery(in.readBoolean());
|
settings.autoGenerateSynonymsPhraseQuery(in.readBoolean());
|
||||||
}
|
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
settings.fuzzyPrefixLength(in.readVInt());
|
settings.fuzzyPrefixLength(in.readVInt());
|
||||||
settings.fuzzyMaxExpansions(in.readVInt());
|
settings.fuzzyMaxExpansions(in.readVInt());
|
||||||
settings.fuzzyTranspositions(in.readBoolean());
|
settings.fuzzyTranspositions(in.readBoolean());
|
||||||
|
@ -234,8 +232,6 @@ public class SimpleQueryStringBuilder extends AbstractQueryBuilder<SimpleQuerySt
|
||||||
}
|
}
|
||||||
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
||||||
out.writeBoolean(settings.autoGenerateSynonymsPhraseQuery());
|
out.writeBoolean(settings.autoGenerateSynonymsPhraseQuery());
|
||||||
}
|
|
||||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
||||||
out.writeVInt(settings.fuzzyPrefixLength());
|
out.writeVInt(settings.fuzzyPrefixLength());
|
||||||
out.writeVInt(settings.fuzzyMaxExpansions());
|
out.writeVInt(settings.fuzzyMaxExpansions());
|
||||||
out.writeBoolean(settings.fuzzyTranspositions());
|
out.writeBoolean(settings.fuzzyTranspositions());
|
||||||
|
|
Loading…
Reference in New Issue