I wouldn't use boolean rewrite. But yeah, the default rewrite can be *very* slow but I don't think crashing.
There's something in Lucene's sandbox "PhraseWildcardQuery" that is superior but no query parser yet uses it. ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Sun, Sep 12, 2021 at 4:42 AM [email protected] <[email protected]> wrote: > Hello, > > > > I’m implementing my own query parser plugin and trying to support “phrase > wildcard query”. > > Meaning that have a field that is tokenized with StandardTokenizer (break > on space etc.) and want to allow searching for: > > “foo ba*” (as phrase). > > I think that SpanMultiTermQueryWrapper can do this for me, just wonder if > I can count on it’s default query rewrite method that has no terms limit, > that it won’t make our production crush in case many terms are collected to > a huge SpanOrQuery, or to use the > > Other method: TopTermsSpanBooleanQueryRewrite that has a terms size limit > (if yes what limit would you suggest?). > > > > Would appreciate someone who is familiar with this input. > > > > Thank you, > > > > >
