-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behavior when requesting stats for the 'suggest' metric #29589
Comments
regarding the mention of |
Pinging @elastic/es-core-infra |
This is intentional. The suggest stats were merged with the search stats and the suggest flag was intentionally left behind (and internally remapped to search) for the indices stats endpoint and it does nothing for the nodes stats endpoint. |
Catching up with @jasontedor, it sounds like this issue can be better described as follows: |
Elasticsearch version (
bin/elasticsearch --version
): 6.2.3Description of the problem including expected versus actual behavior:
With the indices stats endpoint, requesting the ’suggest’ metric returns search stats (which include suggest stats). It looks like we explicitly map ‘suggest’ to the search stats flag when executing the action: https://github.com/elastic/elasticsearch/blob/6.2/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestIndicesStatsAction.java#L71
On the other hand, requesting the ‘suggest’ metric through the nodes stats endpoint returns no stats at all, despite the documentation showing that ‘suggest’ is accepted: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/cluster-nodes-stats.html
I don't have a lot of context, but since suggest has been rolled into search, it may make sense for the 'suggest' metric to never be accepted. This would mean that (1) both indices + nodes stats fail when 'suggest' is requested, and (2) the nodes stats documentation should be updated to remove the reference to 'suggest'.
Steps to reproduce:
See the following gist for the response output: https://gist.github.com/jtibshirani/16fc07384a90b0016d4fd07cedd7c512
The text was updated successfully, but these errors were encountered: