If I were you, probably I will try defining two fields: 1. ts_category as a string type 2. ts_category1 as a text_en type Make sure copy ts_category to ts_category1.
You can use the following as qf in your dismax: qf=body^4.0 title^5.0 ts_category^10.0 ts_category1^5.0 or something like that. YH http://thetechietutorials.blogspot.com/ On Mon, Sep 26, 2011 at 2:06 PM, balaji <mcabal...@gmail.com> wrote: > Hi all > > I am new to SOLR and have a doubt on Boosting the Exact Terms to the top > on a Particular field > > For ex : > > I have a text field names ts_category and I want to give more boost to > this field rather than other fields, SO in my Query I pass the following in > the QF params "qf=body^4.0 title^5.0 ts_category^21.0" and also sort on > SCORE desc > > When I do a search against "Hospitals" . I get "Hospitalization > Management , Hospital Equipment & Supplies " on Top rather than the exact > matches of "Hospitals" > > So It would be great , If I could be helped over here > > > Thanks > Balaji > > > > > > > > Thanks in Advance > Balaji > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Boost-Exact-matches-on-Specific-Fields-tp3370513p3370513.html > Sent from the Solr - User mailing list archive at Nabble.com. >