You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Furkan KAMACI <fu...@gmail.com> on 2013/07/26 15:11:48 UTC

Difference between qf and pf parameters

Here is an example from example solrconfig file:

      <str name="qf">content^0.5 anchor^1.0 title^1.2</str>
      <str name="pf">content^0.5 anchor^1.5 title^1.2 site^1.5</str>

What is the difference between qf and pf parameters, they both boost
fields both there should be a difference?

Re: Difference between qf and pf parameters

Posted by Jack Krupansky <ja...@basetechnology.com>.
The "p" is for "phrase" or "proximity" boosting. "pf" doesn't change what 
documents match, but gives a boost if all of the terms occur next to or near 
each other, based on "ps" (phrase/proximity slop.)

pf2 is to two-term bigram boosting. pf3 is for three-term trigram boosting. 
The terms are adjacent in the "q" query, but if the slop is >1, they won't 
necessarily be required to be adjacent in the boost.

pf, pf2, and pf3 are all related. As are ps, ps2, and ps3.

-- Jack Krupansky

-----Original Message----- 
From: Furkan KAMACI
Sent: Friday, July 26, 2013 9:11 AM
To: solr-user@lucene.apache.org
Subject: Difference between qf and pf parameters

Here is an example from example solrconfig file:

      <str name="qf">content^0.5 anchor^1.0 title^1.2</str>
      <str name="pf">content^0.5 anchor^1.5 title^1.2 site^1.5</str>

What is the difference between qf and pf parameters, they both boost
fields both there should be a difference? 


Re: Difference between qf and pf parameters

Posted by Gora Mohanty <go...@mimirtech.com>.
On 26 July 2013 18:41, Furkan KAMACI <fu...@gmail.com> wrote:
>
> Here is an example from example solrconfig file:
>
>       <str name="qf">content^0.5 anchor^1.0 title^1.2</str>
>       <str name="pf">content^0.5 anchor^1.5 title^1.2 site^1.5</str>
>
> What is the difference between qf and pf parameters, they both boost
> fields both there should be a difference?

Please read http://wiki.apache.org/solr/ExtendedDisMax which
explains what qf and pf are.

Regards,
Gora