On 02/06/11 13:32, Erick Erickson wrote:
Say you're trying to match terms A, B, C. Would something like
(A AND B AND C)^1000 OR (A AND B)^100 OR (A AND C)^100 OR (B AND
C)^100 OR A OR B OR C
work? It wouldn't be an absolute ordering, but it would tend to
push the documents where all three terms matched toward
the top.
The problem with this is that that would give better score to the documents
with most number of matches, but then I have to sort internally those groups.
So I'd need a sort=score,xxx,yyy and the score would not be equal for the
documents which match the same number of keywords.
I would need to have as many groups as keywords, and within each group all
documents need to have the same value for that sorting criteria (score or a
function or whatever), so that they tie, and they move to the next sorting
criteria.
Thanks,
Jesus.