Here is the problem I am trying to solve. I have to use the Standard Request
Handler.

Query (can be quite complex, as it gets built from an advanced search form):
term1^2.0 OR term2 OR "term3 term4"

I have 3 fields - content (the default search field), title and url.

Any matches in the title or url fields should be weighed more. I can specify
index time boosting for these two fields, but I would rather not, as it is a
heavy handed solution. I need to make it user configurable for advanced
search.

What should my query to SOLR be? Something like this?

content:term1^2.0 OR content:term2 OR content:"term3 term4" OR
title:term1^2.0 OR title:term2 OR title:"term3 term4" OR url:term1^2.0 OR
url:term2 OR url:"term3 term4"

Looks like it can get pretty long and error prone. With the 'dismax' handler
I can simply specify

qf=content title^2 url^2

no matter how complex the 'q' parameter is.

Is there a similar easier way I can do query time boosting with Standard
Request Handler, that I am missing?

Thanks for your help

- ashok

-- 
View this message in context: 
http://www.nabble.com/Boost-a-query--by-field-at-query-time---Standard-Request-Handler-tp20842675p20842675.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to