You can use the map() function for this, see
http://wiki.apache.org/solr/FunctionQuery#map
q=a
fox&defType=dismax&qf=allfields&bf=map(query($qq),0,0,0,100.0)&qq=allfields:(quick
AND brown AND fence)
This adds a constant boost of 100.0 if the $qq field returns a non-zero score,
which it does w
> Most of the time, items that match all three terms will
> float to the top by
> normal ranking, but sometimes there are only two terms that
> are like a rash
> across the record, and they end up with a higher score than
> some items that
> match all three query terms.
>
> I'd like to boost items
Let me describe what I'm trying to accomplish, first, since what I think is
the solution is almost always wrong. :-)
I'm doing dismax queries with mm set such that not all terms need to match,
e.g. only 2 of 3 query terms need to match.
Most of the time, items that match all three terms will floa