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

[DOC] Explain the differences between search timeouts #530

Open
1 of 4 tasks
snikoyo opened this issue Jun 2, 2023 · 3 comments
Open
1 of 4 tasks

[DOC] Explain the differences between search timeouts #530

snikoyo opened this issue Jun 2, 2023 · 3 comments
Labels
performance Make it fast!

Comments

@snikoyo
Copy link

snikoyo commented Jun 2, 2023

What do you want to do?

  • Request a change to existing documentation
  • Add new documentation
  • Report a technical problem with the documentation
  • Other

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 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.

@hdhalter
Copy link

Submitted an issue in the Java client repo for the team to address.

@dblock dblock transferred this issue from opensearch-project/documentation-website Jun 20, 2023
@dblock
Copy link
Member

dblock commented Jun 20, 2023

@snikoyo Thanks, looks like you dug out what these options actually mean - do you want to try to PR an update to the user guide in this repo?

@snikoyo
Copy link
Author

snikoyo commented Jun 26, 2023

No, I don't actually know, I'm just guessing after reading elastic/elasticsearch#56258 and
elastic/elasticsearch#30897

@dblock dblock added the performance Make it fast! label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Make it fast!
Projects
None yet
Development

No branches or pull requests

6 participants