First of all, if you stem on indexing and you don't on query time, your queries wont find anything valuable.
This is an easy approach. If you want full term (no stemmed) matches were boosted you have to query like: ?q=data management&defType=edismax&qf=*name_without_stemming^200* name^100 text uid^0.3&fl=name On schema.xml you have to copy "name" to "name_without_stemming"(indexed and no stored) and don't use stemming on this field index and query analyzer definition. On Thu, Oct 25, 2012 at 11:34 PM, bbarani <bbar...@gmail.com> wrote: > Thanks a lot for your reply. > > Consider the below query > > ?q=data management&defType=edismax&qf=name^100 text uid^0.3&fl=name > > I am trying to boost the name as much as possible, even then the results > are > in below order > > - <doc> > <str name="name">MANAGER</str> > </doc> > - <doc> > <str name="name">MANAGER</str> > </doc> > - <doc> > <str name="name">MANAGERS</str> > </doc> > - <doc> > <str name="name">...AA DATA MANAGEMENT</str> > </doc> > - <doc> > <str name="name">BA...AA DATA MANAGEMENT</str> > > When I turned on the debug query, I figured out that the actual keyword > passed is stemmed due to usage of PorterStemFilterFactory which actually > splits the keyword in to data manag and passes that to search. > > I am using PorterStemFilterFactory for both indexing / query. > > I will try to remove the porter stem from query and check if I am getting > proper result. > > Thanks. > BB > > Thanks, > BB > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-boost-exact-match-tp4015862p4015915.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Un saludo, Samuel García.