Skip to content

Add support for terminate_after parameter#31

Open
dani-sc wants to merge 1 commit intoelastic:mainfrom
dani-sc:add-support-for-terminate-after-parameter
Open

Add support for terminate_after parameter#31
dani-sc wants to merge 1 commit intoelastic:mainfrom
dani-sc:add-support-for-terminate-after-parameter

Conversation

@dani-sc
Copy link
Copy Markdown

@dani-sc dani-sc commented Jan 16, 2024

Elasticsearch offers a terminate_after parameter:

(Optional, integer) Maximum number of documents to collect for each shard. If a query reaches this limit, Elasticsearch terminates the query early. Elasticsearch collects documents before sorting.

[src]

This pull request adds support for this option in Elasticsearch::DSL::Search::Options::DSL_METHODS.

@cla-checker-service
Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
0bf13a8

Please, read and sign the above mentioned agreement if you want to contribute to this project

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.

1 participant