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

Increase Elasticsearch max_clause_count #225

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

orangejulius
Copy link
Member

Complex configurations with many synonyms can run into problems with
Elasticsearch throwing an error about exceeding the max_clause_count.

Internally, Elasticsearch takes queries that may be quite short and
rewrites them into potentially many Lucene clauses. The Elasticsearch
default
(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-settings.html)
is to allow up to 1024 clauses.

While the Elasticsearch docs recommend against increasing this setting,
doing so allows us to handle more complex synonym configurations, and is
worth exploring.

Connects OpenTransitTools-BonePile/trimet-mod-pelias#33

Complex configurations with many synonyms can run into problems with
Elasticsearch throwing an error about exceeding the `max_clause_count`.

Internally, Elasticsearch takes queries that may be quite short and
rewrites them into potentially many Lucene clauses. The Elasticsearch
default
(https://www.elastic.co/guide/en/elasticsearch/reference/current/search-settings.html)
is to allow up to 1024 clauses.

While the Elasticsearch docs recommend against increasing this setting,
doing so allows us to handle more complex synonym configurations, and is
worth exploring.

Connects OpenTransitTools-BonePile/trimet-mod-pelias#33
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