Hi I created https://issues.apache.org/jira/browse/SOLR-4362 for this.
Ahmet --- On Sun, 1/20/13, Ahmet Arslan <iori...@yahoo.com> wrote: > From: Ahmet Arslan <iori...@yahoo.com> > Subject: edismax, phrase query with slop, pf parameter > To: solr-user@lucene.apache.org > Date: Sunday, January 20, 2013, 6:13 PM > Hello, > > Using example solrconfig.xml, I make a copy of qf parameter > in /browse request handler and save it as pf parameter. > > I fire a query : "phrase query"~10 -negative > > http://localhost:8983/solr/collection1/browse?q=%22phrase+query%22~10+-negative&wt=xml&indent=true&debugQuery=true > > This is what I get in debug section: > > <str > name="parsedquery">(+(DisjunctionMaxQuery((id:phrase > query^10.0 | author:"phrase query"~10^2.0 | title:"phrase > query"~10^10.0 | text:"phrase query"~10^0.5 | cat:phrase > query^1.4 | keywords:"phrase query"~10^5.0 | manu:"phrase > query"~10^1.1 | description:"phrase query"~10^5.0 | > resourcename:"phrase query"~10 | name:"phrase query"~10^1.2 > | features:"phrase query"~10 | sku:"phrase query"~10^1.5)) > -DisjunctionMaxQuery((id:negative^10.0 | author:negative^2.0 > | title:negative^10.0 | text:negative^0.5 | cat:negative^1.4 > | keywords:negative^5.0 | manu:negative^1.1 | > description:negative^5.0 | resourcename:negative | > name:negative^1.2 | features:negative | sku:negative^1.5))) > DisjunctionMaxQuery((text:"10 negative"^0.5)) > DisjunctionMaxQuery((features:"10 negative")) > DisjunctionMaxQuery((name:"10 > negative"^1.2)))/no_coord</str> > > <str name="parsedquery_toString">+((id:phrase > query^10.0 | author:"phrase query"~10^2.0 | title:"phrase > query"~10^10.0 | text:"phrase query"~10^0.5 | cat:phrase > query^1.4 | keywords:"phrase query"~10^5.0 | manu:"phrase > query"~10^1.1 | description:"phrase query"~10^5.0 | > resourcename:"phrase query"~10 | name:"phrase query"~10^1.2 > | features:"phrase query"~10 | sku:"phrase query"~10^1.5) > -(id:negative^10.0 | author:negative^2.0 | > title:negative^10.0 | text:negative^0.5 | cat:negative^1.4 | > keywords:negative^5.0 | manu:negative^1.1 | > description:negative^5.0 | resourcename:negative | > name:negative^1.2 | features:negative | sku:negative^1.5)) > (text:"10 negative"^0.5) (features:"10 negative") (name:"10 > negative"^1.2)</str> > > I see that somehow slop value of 10 is also searched against > fields when pf parameter is defined. (name:"10 > negative"^1.2) > > This is true for solr-trunk (At revision 1435870) and 4.0.0. > > > Non-negative additional term also cause problems. > &q="phrase query"~10 negative > > I will open a jira ticket but first I wanted to > confirmĀ that this is a bug. > > Thanks, > Ahmet >