I can't find anything in the docs but does Elasticsearch Query API (I Think) have an option to not cache the query results so I can test the query performance?
example query:
GET my_index-*/_count
{
"query": {
"range": {
"the_date_range": {
"gte": "2024-04-01||/M",
"lte": "2024-04-15||/M"
}
}
}
}
my idea for cache-query-results:
GET my_index-*/_count
{
"query": {
"range": {
"the_date_range": {
"gte": "2024-04-01||/M",
"lte": "2024-04-15||/M"
}
}
},
"cache-query-results": false
}
basically if I pass the option in the query to not cache the results, Elasticsearch would not query the results and I could get a true performance test, instead of the next sequencial request returning the cached results.
Open to suggestions, ideas, how to make a feture request, etc...