You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/04 22:54:52 UTC

[Solr Wiki] Update of "MoreLikeThis" by ryan

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ryan:
http://wiki.apache.org/solr/MoreLikeThis

New page:
= More Like This =

/!\ NOTE - this currently refers to [https://issues.apache.org/jira/browse/SOLR-69 SOLR-69], it will not work without applying this patch first.

[[TableOfContents]]

There are two ways to access [http://lucene.apache.org/java/1_9_0/api/org/apache/lucene/search/similar/MoreLikeThis.html MoreLikeThis] from solr: from the !MoreLikeThisHandler or with the StandardRequestHandler.


== Common Parameters ==

|| '''param''' || '''description''' ||
|| mlt.fl || The fields to use for similarity.  NOTE: if possible, these should have a stored TermVector ||
|| mlt.xxx || ... ||
|| mlt.xxx || ... ||



== MoreLikeThisHandler ==

This handler supports faceting and paging using CommonQueryParameters

''examples''

http://localhost:8983/solr/mlt?q=apache&qt=standard&mlt=true&mlt.fl=manu,cat&mlt.mindf=1&mlt.mindf=1&fl=id,score


/!\ ?? should this support highlighting?  What would it highlight


== StandardRequestHandler ==

This method returns similar documents for '''each''' document in the response set.  Perhaps this should be called "!MoreLikeThese"

|| '''param''' || '''description''' ||
|| mlt || 'true' to enable MoreLikeThis results ||
|| mlt.count || The number of similar documents to return for each result. ||

''examples''

http://localhost:8983/solr/select?q=apache&mlt=true&mlt.fl=manu,cat&mlt.mindf=1&fl=id,score