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 SolrLover <bb...@gmail.com> on 2013/08/06 07:17:04 UTC

Boosting in function queries?

I am trying to use the below query to boost the score of dismax component but
it doesn't seem to work ..

<str name="q">
_query_:"{!dismax qf=Fname v=$f_name}"^8.0 OR
_query_:"{!dismax qf=Lname v=$l_name}"^8.0
</str>

Can someone let me know a way to boost Dismax / function queries without
using bq?




--
View this message in context: http://lucene.472066.n3.nabble.com/Boosting-in-function-queries-tp4082726.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Boosting in function queries?

Posted by Upayavira <uv...@odoko.co.uk>.
Try:

<str name="q">
 _query_:"{!dismax qf=Fname^8.0 v=$f_name}" OR
 _query_:"{!dismax qf=Lname^8.0 v=$l_name}"
</str>

If you are using one of the later 4.x releases, you might find you can
do away with the _query_:

<str name="q">
 {!dismax qf=Fname^8.0 v=$f_name} OR
 {!dismax qf=Lname^8.0 v=$l_name}
</str>

I haven't tried any of this, so no guarantees, but they are at least
worth a try!

Upayavira

On Tue, Aug 6, 2013, at 06:17 AM, SolrLover wrote:
> I am trying to use the below query to boost the score of dismax component
> but
> it doesn't seem to work ..
> 
> <str name="q">
> _query_:"{!dismax qf=Fname v=$f_name}"^8.0 OR
> _query_:"{!dismax qf=Lname v=$l_name}"^8.0
> </str>
> 
> Can someone let me know a way to boost Dismax / function queries without
> using bq?
> 
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Boosting-in-function-queries-tp4082726.html
> Sent from the Solr - User mailing list archive at Nabble.com.