mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-30 11:58:36 +00:00
PhraseSuggester can be very slow and CPU intensive if a lot of terms are suggested. Yet, to prevent cluster instabilty and long running requests this commit adds a hard limit of by default 10 tokens where we just return no correction for anymore if the query is parsed into more tokens. Closes #3164