ElasticSearch: how to use filter_path parameter in POST module

Therefore, I can successfully execute the request, for example:

localhost:9200/filebeat-*/_count?filter_path=-_shards {"query": { "match_phrase" : { "message" : "o hohoho" } }} 

How can I move filter_path=-_shards to the request body to make it work?

+5
source share

Source: https://habr.com/ru/post/1268895/


All Articles