Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Solr performs a prefix query by rewriting it as a (potentially) large boolean or terms query, with a clause for each term in the "term dictionary" that matches the prefix. The shorter the prefix, the more expensive this can be and the more likely it is to cause performance problems for users.
We should add a configurable soft-limit, of the type described in SOLR-17191, to prevent users from unknowingly providing very-short-prefixes.
(This may require coordination and buy-in from the Lucene project, depending on implementation details.)
Attachments
Issue Links
- links to