I'm checking through the field search.fetch_total of the _nodes/stats API how many fetches a search query is triggering, but it's not triggering any fetch.
I tried to add different filters with random values to make sure that they are not cached, also cleaned the cache just in case, but still the same.
Also, even if the query is being cached, I thought that the fetch phase is necessary anyway.
Why is that happening? Is it related to some different kind of caching (OS cache, etc)?
By default, the requests cache will only cache the results of search requests where size=0, so it will not cache hits, but it will cache hits.total, aggregations, and suggestions.
In my case, the size of the query is more than 0, so I guess the request is not being cached. Still wondering why any fetches are being triggered.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.