pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
330 stars 223 forks source link

Increase Elasticsearch `max_clause_count` #225

Closed orangejulius closed 3 years ago

orangejulius commented 3 years ago

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 https://github.com/OpenTransitTools/trimet-mod-pelias/issues/33