Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timout parameter doesn't work with search #28179

Closed
mmll opened this issue Jan 11, 2018 · 1 comment
Closed

timout parameter doesn't work with search #28179

mmll opened this issue Jan 11, 2018 · 1 comment

Comments

@mmll
Copy link

mmll commented Jan 11, 2018

Describe the feature:

Elasticsearch version (bin/elasticsearch --version):5.2.2

Plugins installed: []

JVM version (java -version): 1.8.0_121

OS version (uname -a if on a Unix-like system): opensuse

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

  1. Do search with " curl -XGET 'localhost:9200/_search?pretty&timeout=1ms' "
  2. The part of response is :
    {
    "took" : 5,
    "timed_out" : false,
    "_shards" : {
    "total" : 208,
    "successful" : 208,
    "failed" : 0
    },
    "hits" : {
    "total" : 104429,
    "max_score" : 1.0,
    "hits" :
    ...
  3. The took time is 5ms, and timeout setting is 1ms. Why "timed_out" is false rather than true.

Provide logs (if relevant):

@jasontedor
Copy link
Member

Timeout only refers to the execution time of the search on the shard, it does not account for the total service time (time in the queue, time parsing the query, time rendering the response, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants