Closed orangejulius closed 3 years ago
Complex configurations with many synonyms can run into problems with Elasticsearch throwing an error about exceeding the max_clause_count.
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
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