opensearch-project / opensearch-project/opensearch-java
[DOC] Explain the differences between search timeouts
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 165
- Forks
- 250
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 26
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the Java client methods searchRequest.setCancelAfterTimeInterval and SearchSourceBuilder.timeout, then determine how SearchResponse.isTimedOut relates to each timeout. Done means the documentation clearly distinguishes their scopes and explains which timeout or timeouts are reflected by isTimedOut.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100