Put everything except q in solrconfig... Then just use
qt=nameinsolrconfig&q=



On 5/19/11 7:52 PM, "ronveenstra" <ron-s...@agathongroup.com> wrote:

>Apologies if this is obvious, but I've been banging my head against a
>wall.
>
>I can define a query like the following:
>
>http://HOST_NAME/solr/select?q=$search_term&bq=boost_high:$search_term^1.5
>&bq=boost_medium:$search_term^1.3&bq=boost_max:$search_term^1.7&bq=boost_l
>ow:$search_term^1.1
>
>This does precisely what I'm looking for (assuming $search_term is a
>string
>like "dinosaur")  The search term is found in the default/defined search
>fields, and then a boost is applied if this term is also found in one of
>the
>defined boost fields.  What I'm looking to do is define this setup in
>solrconfig.xml such that I need only hit a URL like:
>
>http://HOST_NAME/solr/select?q=$search_term
>
>I can define a "bq" str in solrconfig, but seem unable to reference the
>"q"
>query parameter in order to boost only when the search term is found.  Any
>help would be greatly appreciated.
>
>--
>View this message in context:
>http://lucene.472066.n3.nabble.com/Using-Boost-fields-for-a-sum-total-scor
>e-tp2958968p2963986.html
>Sent from the Solr - User mailing list archive at Nabble.com.


Reply via email to