SOLR-3352

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 12. apr. 2012, at 02:10, Yonik Seeley wrote:

> On Wed, Apr 11, 2012 at 7:40 PM, Jan Høydahl <jan....@cominvent.com> 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: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to