: i m using solr from trunk 4.0 : Also dismax is set as default qt with : <str name="qf"> : text^2.5 features^1.1 displayName^15.0 mfg^4.0 description^3.0 : </str> : : myquery is : ============= : q=+"ab sx"+OR+(mfg:abc+OR+sx)+OR+(displayName:abc+OR+sx)&qt=dismax : : It is not working as per my expectation .
Rul of thumb: if something isn't working the way you expect, you need to explain: a) what "it" is; b) what you expect it to do. c) what it's actually doing. You've told us (most of) "a", but you haven't given us any idea what "b" and "c" are. you seem to want the score to be reflected based on what field you get a match in (ie: your "qf" boosts), but you also seem to want total control over which fields are searched (ie: explicitly querying on the "mfg", and displayName fields), and it's also not clear if you ment to say "ab" in the ifrst clause of if that is consistently suppose to be "abc" in all clauses -- likewise it's not clear which fields you want to search for "sx" in (is that suppose t oonly be in the "mfg" and "displayName" fields?) if your goal is just to say "search all fields but score higher on the fields "mfg" and "displayName" then you can just leave your "qf" the way it is and use "q=abc sx" .. if the scores aren't weighted high enough for your msfg+displayName fields, then you cna tweak the boosts. if your goal is something else, then please be more explicit about your goal and please post the *entire* <requestHandler /> configuration, and the full query url with all params, and details about the results you are getting (if the order isn't what you want, then the full debugQuery output is going to be helpful to udnerstand why) https://wiki.apache.org/solr/UsingMailingLists -Hoss