What you describe is what normal Solr search does already - you can think of the query as a very small document and the search as a process that tries to find documents in the index that are the most similar to that "query document".
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Shrutipriya <shrutipr...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Wednesday, April 22, 2009 1:50:25 PM > Subject: MLT for sorting results? > > hi, > > i was wondering if anyone has used solr MLT ("more like this") for sorting > search results i.e. documents that are "most" like the query appear on > top and so on. so the query is itself treated like a document and one tries > finding docs "similar" to it from the corpus. > > is there a way to set precision in the MLT handler to help with sorting? > (documents that match 99.9% on top, then 99% .... down to 0.1% or whatever) > > thanks, > shruti