Skip to content

add timeout to search query #572

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

Merged

Conversation

simpleusr
Copy link
Contributor

Hi,

We are using ReactiveElasticsearchOperations search methods with nativeSearchQueries.

It seems that there is no way to provide query timeout for search request.

Elasticsearch api provides this option but I don't see any way to achieve this using spring-data-es.

Indeed very similar question was previously asked on SO:

https://stackoverflow.com/questions/54201598/how-to-define-a-query-timeout-for-a-spring-data-elastic-search-query

This pr tries to add that option to api.

Best regards

@pivotal-issuemaster
Copy link

@simpleusr Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@simpleusr Thank you for signing the Contributor License Agreement!

@sothawo sothawo merged commit e950752 into spring-projects:master Dec 18, 2020
@sothawo
Copy link
Collaborator

sothawo commented Dec 18, 2020

Thank you very much for your contribution. Your PR has been merged.

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

Successfully merging this pull request may close these issues.

3 participants