On 4/19/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: > Any reason that parser.setAllowLeadingWildcards(true) shouldn't be : > the default? i'm of two minds on this, both of which vote "don't do it" from a predictibility standpoint, i think we should keep the default beahvior the same as the base QueryParsers default behavior as much as possible
For things that return results, yes. I think that taking away features isn't a good thing, but adding them can be (basically, backward compatibility).
from a stability standpoint, i would suggest that people should have to go out of their way to get this behavior, since it does open up the possiblity of a query OOMing Solr extremely easily.
ConstantScorePrefixQuery is used... there shouldn't be an issue with memory, just time.
In general: if we are going to change the behavior of existing syntax in QP, it should be in ways that make the system more stable (ala: ConstantScore Range and Prefix queries) and not less.
One could argue producing a result rather than throwing an exception is an improvement. -Yonik