Skip to content

Conversation

dani-sc
Copy link

@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

❌ 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