Re: Sort by document similarity counts

2013-07-18 Thread zygis
chi To: solr-user@lucene.apache.org Sent: Thursday, July 18, 2013 4:29 PM Subject: Re: Sort by document similarity counts > I have tried doing this via custom SearchComponent, where I can find all > similar documents for each document in current search result, then add a new > field i

Re: Sort by document similarity counts

2013-07-18 Thread Koji Sekiguchi
I have tried doing this via custom SearchComponent, where I can find all similar documents for each document in current search result, then add a new field into document hoping to use sort parameter (q=*&sort=similarityCount). I don't understand this part very well, but: But this will not wo

Sort by document similarity counts

2013-07-18 Thread zygis
Hi, Is it possible to sort search results based on the count of similar documents a document has? Say we have a document A which has 4 other similar documents in the index and document B which has 10. Then the order solr returns them should be B, A. Sorting on moreLikeThis counts for each docum