Skip to content

Commit 4da38cf

Browse files
retaakolarkunnu
authored andcommitted
Support Filtering on Large List encoded by Bitmap (version update) (opensearch-project#15352)
Signed-off-by: Andriy Redko <[email protected]>
1 parent 434fc8b commit 4da38cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/src/main/java/org/opensearch/index/query/TermsQueryBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public TermsQueryBuilder(StreamInput in) throws IOException {
251251
termsLookup = in.readOptionalWriteable(TermsLookup::new);
252252
values = (List<?>) in.readGenericValue();
253253
this.supplier = null;
254-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
254+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
255255
valueType = in.readEnum(ValueType.class);
256256
}
257257
}
@@ -264,7 +264,7 @@ protected void doWriteTo(StreamOutput out) throws IOException {
264264
out.writeString(fieldName);
265265
out.writeOptionalWriteable(termsLookup);
266266
out.writeGenericValue(values);
267-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
267+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
268268
out.writeEnum(valueType);
269269
}
270270
}

server/src/main/java/org/opensearch/indices/TermsLookup.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public TermsLookup(StreamInput in) throws IOException {
8787
path = in.readString();
8888
index = in.readString();
8989
routing = in.readOptionalString();
90-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
90+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
9191
store = in.readBoolean();
9292
}
9393
}
@@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
101101
out.writeString(path);
102102
out.writeString(index);
103103
out.writeOptionalString(routing);
104-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
104+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
105105
out.writeBoolean(store);
106106
}
107107
}

0 commit comments

Comments
 (0)