#26496: Set the correct bwc version after backport to 6.x
This commit is contained in:
parent
1adee8b5a8
commit
c62b0192d0
|
@ -89,8 +89,7 @@ public final class CompletionSuggestion extends Suggest.Suggestion<CompletionSug
|
|||
@Override
|
||||
public void readFrom(StreamInput in) throws IOException {
|
||||
super.readFrom(in);
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
|
@ -98,8 +97,7 @@ public final class CompletionSuggestion extends Suggest.Suggestion<CompletionSug
|
|||
@Override
|
||||
public void writeTo(StreamOutput out) throws IOException {
|
||||
super.writeTo(out);
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -295,8 +295,8 @@ setup:
|
|||
---
|
||||
"Skip duplicates should work":
|
||||
- skip:
|
||||
version: " - 6.99.99"
|
||||
reason: skip_duplicates was added in 7.0 (TODO should be backported to 6.1)
|
||||
version: " - 6.0.99"
|
||||
reason: skip_duplicates was added in 6.1
|
||||
|
||||
- do:
|
||||
index:
|
||||
|
|
|
@ -281,8 +281,8 @@ setup:
|
|||
---
|
||||
"Skip duplicates with contexts should work":
|
||||
- skip:
|
||||
version: " - 6.99.99"
|
||||
reason: skip_duplicates was added in 7.0 (TODO should be backported to 6.1)
|
||||
version: " - 6.0.99"
|
||||
reason: skip_duplicates was added in 6.1
|
||||
|
||||
- do:
|
||||
index:
|
||||
|
|
Loading…
Reference in New Issue