add _seq_no field to allowed metafields

Original commit: elastic/x-pack-elasticsearch@875cbea3e0
This commit is contained in:
jaymode 2016-11-16 12:21:15 -05:00
parent 52eec4736d
commit 586a8d4a00
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ public class SecurityIndexSearcherWrapper extends IndexSearcherWrapper {
allowedMetaFields.add("_source"); // TODO: add _source to MapperService#META_FIELDS?
allowedMetaFields.add("_version"); // TODO: add _version to MapperService#META_FIELDS?
allowedMetaFields.remove("_all"); // The _all field contains actual data and we can't include that by default.
allowedMetaFields.add("_seq_no"); // TODO: add _seq_no to MapperService#META_FIELDS?
this.allowedMetaFields = Collections.unmodifiableSet(allowedMetaFields);
}