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 Satish Kumar <sa...@gmail.com> on 2010/05/11 18:02:46 UTC
Re: what kind params should be in "pf" , pls give a demo.
pf has the format as qf.
<pf>titlePhrase^10.0</pf>
For our project, if user query text matches the title of an article/book, we
want to surface that article as the first result. So, we are using pf field
to give additional boost to results that have the exact title match.
On Mon, May 10, 2010 at 11:21 PM, Dickens Ting <di...@yahoo.com.cn>wrote:
> solr-user@lucene.apache.org
>
> Hello,
>
> I'm running Solr 1.4 for a bbs search.
> we index the subject and content.
> we are using DisMaxRequestHandler now.
> We make
> Could anyone give me some pieces advice of setting "pf"
> what kind params should be in "pf" , pls give a demo.
>
> #################################################################
>
> <float name="tie">0.15</float>
> <str name="qf">'pSubject^2 pContent^1.5' </str>
> <str name="bf">recip(ms(NOW,Posted),3.16e-11,1,1)^350</str> <!-- time
> boost -->
> <int name="ps">100</int>
>
>
>
Re: what kind params should be in "pf" , pls give a demo.
Posted by Chris Hostetter <ho...@fucit.org>.
: pf has the format as qf.
:
: <pf>titlePhrase^10.0</pf>
...uh, i'm not sure what that xml syntax is suppose to convey, but if you
are putting it in a solrconfig file as a default it would be...
<str name="qf">titlePhrase^10.0</str>
Note also that Dickens qf is also malformed...
: > <str name="qf">'pSubject^2 pContent^1.5' </str>
...those single quotes should not be there...
<str name="qf">pSubject^2 pContent^1.5</str>
-Hoss