use solr to find documents that are most similar to other documents

Finally, the MLT query parser can be used. This operates in much the same way as the request handler but since it is a query parser it can be used in filter queries, boost queries, etc., and results can be paginated or highlighted as needed.

Older answers suggested the TFiDF scoring algorithm.