|
@@ -128,8 +128,7 @@ public class CompletionSuggestionBuilder extends SuggestionBuilder<CompletionSug
|
|
|
fuzzyOptions = in.readOptionalWriteable(FuzzyOptions::new);
|
|
|
regexOptions = in.readOptionalWriteable(RegexOptions::new);
|
|
|
contextBytes = in.readOptionalBytesReference();
|
|
|
- // TODO should be backported to 6.1.0
|
|
|
- if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
+ if (in.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
|
skipDuplicates = in.readBoolean();
|
|
|
}
|
|
|
}
|
|
@@ -139,8 +138,7 @@ public class CompletionSuggestionBuilder extends SuggestionBuilder<CompletionSug
|
|
|
out.writeOptionalWriteable(fuzzyOptions);
|
|
|
out.writeOptionalWriteable(regexOptions);
|
|
|
out.writeOptionalBytesReference(contextBytes);
|
|
|
- // TODO should be backported to 6.1.0
|
|
|
- if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_6_1_0)) {
|
|
|
out.writeBoolean(skipDuplicates);
|
|
|
}
|
|
|
}
|