8 search timeout parameter in

The default search, there is no time limit. For example, a search, can take 10 minutes to complete the search, then, es will wait 10 minutes, until the results come out.
 
However, in some scenarios, customers can not wait for 10 minutes. For example, the electricity supplier website, customers would rather wait one second, get 100 results, not willing to wait 10 minutes to see 10,000 results.
 
Therefore, we will specify the timeout time on the search, over a specified time, drove the (already found to return data to the user). .
 
Note: timeout does not end search, although the results are returned, but the background will still execute the query.
 
According to current research, because the underlying ES call Lucene, but some restrictions in Lucene, so that the search could not stop. .
 
About my research about timeout, see my blog: https://www.cnblogs.com/cc299/p/10094117.html
 
 

Guess you like

Origin www.cnblogs.com/cc299/p/11032817.html