You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to set a timeout on a search request and found two methods in the Java client, searchRequest.setCancelAfterTimeInterval and SearchSourceBuilder.timeout. I could find no documentation at all for setCancelAfterTimeInterval. After reading some issues in the Elasticsearch repository I make the more or less educated gues that the first one is a general timeout while the timeout on the SearchSourceBuilder is set on the shard level. Some documentation to distinguish the two would be very helpful. It would also be good to know if SearchResponse.isTimedOut refers to both of these timeouts or only one of them.
The text was updated successfully, but these errors were encountered:
What do you want to do?
Tell us about your request.
I would like to set a timeout on a search request and found two methods in the Java client,
searchRequest.setCancelAfterTimeInterval
andSearchSourceBuilder.timeout
. I could find no documentation at all forsetCancelAfterTimeInterval
. After reading some issues in the Elasticsearch repository I make the more or less educated gues that the first one is a general timeout while the timeout on the SearchSourceBuilder is set on the shard level. Some documentation to distinguish the two would be very helpful. It would also be good to know ifSearchResponse.isTimedOut
refers to both of these timeouts or only one of them.The text was updated successfully, but these errors were encountered: