Skip to content

Commit

Permalink
BWC change following backport of PR 78697 to 7.x (elastic#79067)
Browse files Browse the repository at this point in the history
BWC change following backport of PR 78697 to 7.x
Closes elastic#74121
  • Loading branch information
markharwood authored Oct 13, 2021
1 parent 6dd55f2 commit 0f9848e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ won't be included in the response because `include_unmapped` isn't set to
[discrete]
[[Ignored-field values]]
==== Ignored field values
The `fields` option only returns values that were valid when indexed.
The `fields` section of the response only returns values that were valid when indexed.
If your search request asks for values from a field that ignored certain
because they were malformed or too large these values are returned
separately in an `ignored_field_values` section.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class DocumentField implements Writeable, Iterable<Object> {
public DocumentField(StreamInput in) throws IOException {
name = in.readString();
values = in.readList(StreamInput::readGenericValue);
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_16_0)) {
ignoredValues = in.readList(StreamInput::readGenericValue);
} else {
ignoredValues = Collections.emptyList();
Expand Down Expand Up @@ -102,7 +102,7 @@ public List<Object> getIgnoredValues() {
public void writeTo(StreamOutput out) throws IOException {
out.writeString(name);
out.writeCollection(values, StreamOutput::writeGenericValue);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_16_0)) {
out.writeCollection(ignoredValues, StreamOutput::writeGenericValue);
}

Expand Down

0 comments on commit 0f9848e

Please sign in to comment.