Re: Question about sorting by coordination factor

2011-06-02 Thread Erick Erickson
Ahhh, you're right. I know there's been some discussion in the past about how to find out the number of terms that matched, but don't remember the outcome off-hand. You might try searching the mail archive for something like "number of matching terms" or some such. Sorry I'm not more help Erick O

Re: Question about sorting by coordination factor

2011-06-02 Thread Jesus Gabriel y Galan
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

Re: Question about sorting by coordination factor

2011-06-02 Thread Erick Erickson
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. It would get real

Question about sorting by coordination factor

2011-06-02 Thread Jesus Gabriel y Galan
Hi, I am trying to solve a sorting problem using Solr. The sorting requirements are a bit complicated. I have to sort the documents by three different criteria: - First by number of keywords that match (coordination factor) - Then, within the documents that match the same number of keywords, s