Query scoped timeout and allow_partial_search_results

Hi guys.

According to this page, it seems that the parameter for the timeout is search_timeout and not timeout anymore.
On this other page, it seems it is still timeout.

I'm using the REST API, making some tests, using Elasticsearch 7.4.2, it seems timeout is parsed and search_timeout is not.

Moreover, it seems that:

  1. timeoutcould be provided both as query parameter and as body entry (at the same level of "query" entry)
  2. allow_partial_search_results could be provided only as query parameter

Furthermore, trying to provoke a timeout:

localhost:9200/indexname/_search?allow_partial_search_results=false&timeout=1nanos
{
"query": {
"bool": {
"should": [{
"match": {
"string1": {
"boost": 39.0,
"query": "Irving"
}
}
}, {
"match": {
"string1": {
"query": "Coe"
}
}
}]
}
},
"sort": ["_score"]
}

I got:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
}
...
}

According to the response it seems that query took 1 millisecond and my timeout is set to 1 nanosecond. Why is not timed out?

I'm pretty sure I'm doing something wrong and I didn’t understood very well the documentation.

Thanks
Fabio

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.