On Wed, Apr 11, 2012 at 7:40 PM, Jan Høydahl <[email protected]> wrote: > Testing pf2 and pf3. I thought that when using pf2=myfield, and q=foo bar, > you would get a phrase query "foo bar", but you don't, unless there are at > least 3 terms in the query. Is this intentional?
Nope. > I think of "pf2" as boosting any two words in the query, even if there are > only two words. Correct. > The offending code is: > > if (null == fields || fields.isEmpty() || > null == clauses || clauses.size() <= shingleSize ) > return; Correct. Looks like a bug probably introduced during a refactor (since I don't recall using the "shingle" terminology). -Yonik lucenerevolution.com - Lucene/Solr Open Source Search Conference. Boston May 7-10 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
