From 586a8d4a000bad31a6bc33f1003520d374f61c1a Mon Sep 17 00:00:00 2001 From: jaymode Date: Wed, 16 Nov 2016 12:21:15 -0500 Subject: [PATCH] add _seq_no field to allowed metafields Original commit: elastic/x-pack-elasticsearch@875cbea3e040b005f4e312091c31579fce122d55 --- .../authz/accesscontrol/SecurityIndexSearcherWrapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapper.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapper.java index 4357faaaddb..c32d9362300 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapper.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/authz/accesscontrol/SecurityIndexSearcherWrapper.java @@ -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); }