Hi Erik, No, nothing fancy in there at all. I used example/solr/conf/solrconfig.xml and I really only touched qf, pf, bf, and fl:
<requestHandler name="dismax" class="solr.DisMaxRequestHandler" > <lst name="defaults"> <str name="echoParams">explicit</str> <float name="tie">0.01</float> <str name="qf"> content^1.0 </str> <str name="pf"> content^2.0 </str> <str name="bf"> recip(rord(addDate),1,1000,1000)^2.5 </str> <str name="fl"> id,content,addDate,timestamp </str> <str name="mm"> 2<-1 5<-2 6<90% </str> <int name="ps">100</int> <str name="q.alt">*:*</str> <!-- example highlighter config, enable per-query with hl=true --> <str name="hl.fl">text features name</str> <!-- for this field, we want no fragmenting, just highlighting --> <str name="f.name.hl.fragsize">0</str> <!-- instructs Solr to return the field itself if no query terms are found --> <str name="f.name.hl.alternateField">name</str> <str name="f.text.hl.fragmenter">regex</str> <!-- defined below --> </lst> </requestHandler> Solr bug or my mistake somewhere? Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Erik Hatcher <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Saturday, April 26, 2008 2:37:04 PM > Subject: Re: DisMax and pf > > > On Apr 25, 2008, at 5:04 PM, Otis Gospodnetic wrote: > > I was looking at DisMax and playing with its "pf" parameter. I > > created a sample index with field "content". I set "pf" to: > > content^2.0 and expected to see (content:"my query here")^2.0 in > > the query (debugQuery=true). However, I only got (content:"my > > query here") -- no boost. > > Is this a bug or am I forgetting something? > > How did you configure your request handler exactly? Were you using > any fancy type of query in there? > > Erik > > > > > I did add "&pf=content^2.0" to the request URL and then I did see > > (content:"my query here")^2.0 > > Thanks, > > Otis > > > > -- > > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > >