Sorry I don't have a definitive answer right now, especially with regard to the spaces - other than that they are not permitted. But a couple of things...

1. The "!" is only after the "{".
2. The qf and pf parameters need to be in quotes, I think: qf='title,description' 3. defType is done via the "type" parameter: {!type=dismax or just {!dismax .
4. bf will also parse out the "^" special, messing up your nested pf param.

Consider using "boost" with the edismax query parser. It won't have the problems with the spaces or "^".

-- Jack Krupansky

-----Original Message----- From: Anatoli Matuskova
Sent: Tuesday, January 22, 2013 4:32 AM
To: solr-user@lucene.apache.org
Subject: Re: bf, nested queries and local params

q=table&bf=product(scale(product(query({!v='color'}),1),0,1),100)

This worked! Now looking at debug query I see that the nested query is using
the default field and default op. from schema.xml How could I pass params to
the nested query as the defType or qf. I would like to do something like
this (but I'm getting errors):

q=table&bf=product(scale(product(query({!v='color' !qf=title,description
!defType=dismax !pf=title^2.0,description^2.0}),1),0,1),100)

I don't know how to express the params of the nested query, having errors
all the time (removing spaces between params results in errors too).




--
View this message in context: http://lucene.472066.n3.nabble.com/bf-nested-queries-and-local-params-tp4035216p4035284.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to