Hi,
I want to get only the count of search hits from ElasticSearch.
I currently have a structured query with highlighting, aggregation, sorting, post_filters and all. Inside the query section, I also use the function score and boosting using '^'.
Now in another application, all I want is the count of results, so I guess I need to use '_count' api. I also want to reuse the current query generation logic.
My question is does the _count api automatically ignores the boosting logic inside the query portion?
Note: I want to it to skip the boosting logic and other parts as highlighting and aggregation to improve performance.
If ES does not ignore the boosting logic automatically, is there a way we can do it manualy?