Otis,
Can you duplicate this issue with Solr's example app and example
documents? Using that setup I made this query:
<http://localhost:8983/solr/select?qt=dismax&q=ipod
+mini&debugQuery=true&echoParams=all>
And got this in the results:
<str name="parsedquery">
+((DisjunctionMaxQuery((text:ipod^0.5 | cat:ipod^1.4 | features:ipod
| name:ipod^1.2 | sku:ipod^1.5 | manu:ipod^1.1 | id:ipod^10.0)~0.01)
DisjunctionMaxQuery((text:mini^0.5 | cat:mini^1.4 | features:mini |
name:mini^1.2 | sku:mini^1.5 | manu:mini^1.1 | id:mini^10.0)~0.01))
~2) DisjunctionMaxQuery((text:"ipod mini"~100^0.2 | manu:"ipod
mini"~100^1.4 | name:"ipod mini"~100^1.5 | manu_exact:ipod mini^1.9 |
features:"ipod mini"~100^1.1)~0.01) FunctionQuery((1000.0/(1.0*float
(rord(price))+1000.0))^0.3) FunctionQuery((ord(popularity))^0.5)
</str>
<str name="parsedquery_toString">
+(((text:ipod^0.5 | cat:ipod^1.4 | features:ipod | name:ipod^1.2 |
sku:ipod^1.5 | manu:ipod^1.1 | id:ipod^10.0)~0.01 (text:mini^0.5 |
cat:mini^1.4 | features:mini | name:mini^1.2 | sku:mini^1.5 |
manu:mini^1.1 | id:mini^10.0)~0.01)~2) (text:"ipod mini"~100^0.2 |
manu:"ipod mini"~100^1.4 | name:"ipod mini"~100^1.5 | manu_exact:ipod
mini^1.9 | features:"ipod mini"~100^1.1)~0.01 (1000.0/(1.0*float(rord
(price))+1000.0))^0.3 (ord(popularity))^0.5
</str>
Erik
On Apr 26, 2008, at 4:12 PM, Otis Gospodnetic wrote:
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