mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
The analyze api allows to specify an index, to retrieve analyzers or token filters from a specific index. That is why it is categorized as indices level action. That said the index is optional and when not specified the action is executed at the cluster level. We have to remap the name of the action in that case, to make sure that it requires a different privilege under cluster: cluster:admin/analyze instead of indices:admin/analyze . Closes elastic/elasticsearch#566 Closes elastic/elasticsearch#565 Closes elastic/elasticsearch#592 Original commit: elastic/x-pack-elasticsearch@9073b30d08