#26870 change bwc version for fuzzy_transpositions to 6.1 after backport

This commit is contained in:
Jim Ferenczi 2017-10-05 11:28:59 +02:00
parent 2d409a912f
commit 24359c1a75
3 changed files with 0 additions and 12 deletions

View File

@ -228,8 +228,6 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
zeroTermsQuery = MatchQuery.ZeroTermsQuery.readFromStream(in);
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
autoGenerateSynonymsPhraseQuery = in.readBoolean();
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
fuzzyTranspositions = in.readBoolean();
}
}
@ -258,8 +256,6 @@ public class MultiMatchQueryBuilder extends AbstractQueryBuilder<MultiMatchQuery
zeroTermsQuery.writeTo(out);
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
out.writeBoolean(fuzzyTranspositions);
}
}

View File

@ -229,8 +229,6 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
}
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
autoGenerateSynonymsPhraseQuery = in.readBoolean();
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
fuzzyTranspositions = in.readBoolean();
}
}
@ -287,8 +285,6 @@ public class QueryStringQueryBuilder extends AbstractQueryBuilder<QueryStringQue
}
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
out.writeBoolean(autoGenerateSynonymsPhraseQuery);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
out.writeBoolean(fuzzyTranspositions);
}
}

View File

@ -191,8 +191,6 @@ public class SimpleQueryStringBuilder extends AbstractQueryBuilder<SimpleQuerySt
}
if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
settings.autoGenerateSynonymsPhraseQuery(in.readBoolean());
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
settings.fuzzyPrefixLength(in.readVInt());
settings.fuzzyMaxExpansions(in.readVInt());
settings.fuzzyTranspositions(in.readBoolean());
@ -234,8 +232,6 @@ public class SimpleQueryStringBuilder extends AbstractQueryBuilder<SimpleQuerySt
}
if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
out.writeBoolean(settings.autoGenerateSynonymsPhraseQuery());
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
out.writeVInt(settings.fuzzyPrefixLength());
out.writeVInt(settings.fuzzyMaxExpansions());
out.writeBoolean(settings.fuzzyTranspositions());