: doc1 is name=A B category=B
: doc2 is name=A category=B
: 
: when searching for the terms "A" and "B" I want doc2 to get a higher score.
: to be more specific, I don't want the term "B" to influence doc1's score in
: both <name> and <category>, only in one of them.

if you set the boost value of category to something very high, and set 
tie=0 you should get the exact behavior you describe.

with tie=0, each clause (ie: "B") will only get a score contribution from 
the highest scoring field -- if the qf boost value for category is 
significantly higher then the boost value for "name" this should work 
fine.

this is one of hte prime usecases for dismax: a "category" or "doc_type" 
field that has a very small finite set of values in it which frequently 
doesn't match anythin users type, but you configure it with a hight boost 
value so when it *does* match something the user types, it causes 
documents in that category (or having htat document_type) to dominate over 
other documents.

-Hoss

Reply via email to