Just add the boost to the keyword: q=toyota^100.

Or, use the dismax or edismax query parsers and then the boost can be specified for the field: qf=keyword^100.

-- Jack Krupansky

-----Original Message----- From: manju16832003
Sent: Thursday, May 22, 2014 12:04 AM
To: solr-user@lucene.apache.org
Subject: Applying boosting for keyword search

HI,
I have a scenario where by I apply boosting in the following two cases
- Usual search, by user selection
- Keyword search. I have a field *keyword* that is copy/combination of many
fields

When user does the usual query, my boosting works fines, this is how I do
boosting

/select?q=featured:true^100&fq=make:toyota&sort=price asc
This works fine

However I'm confused, how we could perform boosting using *keyword* serach

/select?q=toyota&defType=edismax&bq=featured:true^100&sort=price asc
This does not work as I expected. In solrconfig.xml my default field set to
keyword (df=keyword)

My question, how could I perform boosting with keyword search?

when we are using keyword search, user keys goes into *q* param, so where
Can I specify the boosting query?
I tried with *bq* and *function query*, No luck :-(.

Can I perform like this
/select?q=toyota featured:true^100
Keyword and boosting done with *q* param.





--
View this message in context: http://lucene.472066.n3.nabble.com/Applying-boosting-for-keyword-search-tp4137523.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to