File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/main/java/org/opensearch/security/privileges Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 3232import org .apache .logging .log4j .Logger ;
3333
3434import org .opensearch .action .ActionRequest ;
35+ import org .opensearch .action .fieldcaps .FieldCapabilitiesAction ;
36+ import org .opensearch .action .get .GetAction ;
37+ import org .opensearch .action .get .MultiGetAction ;
38+ import org .opensearch .action .search .MultiSearchAction ;
39+ import org .opensearch .action .search .SearchAction ;
3540import org .opensearch .action .search .SearchRequest ;
3641import org .opensearch .cluster .metadata .IndexNameExpressionResolver ;
3742import org .opensearch .cluster .service .ClusterService ;
@@ -49,13 +54,11 @@ public class TermsAggregationEvaluator {
4954 protected final Logger log = LogManager .getLogger (this .getClass ());
5055
5156 private static final String [] READ_ACTIONS = new String [] {
52- "indices:data/read/msearch" ,
53- "indices:data/read/mget" ,
54- "indices:data/read/get" ,
55- "indices:data/read/search" ,
56- "indices:data/read/field_caps*"
57- // "indices:admin/mappings/fields/get*"
58- };
57+ MultiSearchAction .NAME ,
58+ MultiGetAction .NAME ,
59+ GetAction .NAME ,
60+ SearchAction .NAME ,
61+ FieldCapabilitiesAction .NAME };
5962
6063 private static final QueryBuilder NONE_QUERY = new MatchNoneQueryBuilder ();
6164
You can’t perform that action at this time.
0 commit comments