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 HossMan: http://wiki.apache.org/solr/MoreLikeThis ------------------------------------------------------------------------------ - = More Like This = + There are two ways to access [http://lucene.apache.org/java/2_0_0/api/org/apache/lucene/search/similar/MoreLikeThis.html MoreLikeThis] from solr: from the MoreLikeThisHandler or with the StandardRequestHandler. - [solr 1.3+] + <!> ["Solr1.3"] [[TableOfContents]] - - There are two ways to access [http://lucene.apache.org/java/2_0_0/api/org/apache/lucene/search/similar/MoreLikeThis.html MoreLikeThis] from solr: from the !MoreLikeThisHandler or with the StandardRequestHandler. == TermVectors, Analyzers and MoreLikeThis == @@ -29, +27 @@ || mlt.boost || [true/false] set if the query will be boosted by the interesting term relevance. || - == MoreLikeThisHandler == - - This handler supports faceting, paging, and filtering using CommonQueryParameters - - || '''param''' || '''description''' || - || mlt.match.include || Should the response include the matched document? If false, the response will look exactly like a normal /select response || - || mlt.match.offset || By default, the MoreLikeThis query operates on the first result for 'q' || - || mlt.interestingTerms || One of: "list", "details", "none" -- this will show what "interesting" terms are used for the MoreLikeThis query. These are the top tf/idf terms. NOTE: if you select 'details', this shows you the term and boost used for each term. Unless `mlt.boost=true` all terms will have boost=1.0 || - - The MoreLikeThisHandler can also use a ContentStream to find similar documents. It will extract the "interesting terms" from the posted text. - - ''examples'' - - http://localhost:8983/solr/mlt?q=id:UTF8TEST&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1 - - http://localhost:8983/solr/mlt?q=id:UTF8TEST&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1&mlt.match.include=false - - http://localhost:8983/solr/mlt?q=id:SP2514N&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1&fq=inStock:true&mlt.displayTerms=details - - ''Using ContentStream'' - - If you post text in the body, that will be used for similarity. Alternativly, you can put the posted content in the URL using something like: http://localhost:8983/solr/mlt?stream.body=electronics%20memory&mlt.displayTerms=list&mlt.mintf=0 - - If remoteStreaming is enabled, you can find documents similar to the text on a webpage: - http://localhost:8983/solr/mlt?stream.url=http://lucene.apache.org/solr/&mlt.displayTerms=list&mlt.mintf=0 - - ''Using filter queries (fq):'' - - http://localhost:8983/solr/mlt?q=id:SP2514N&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1&fq=inStock:true - - - /!\ ?? 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" @@ -76, +40 @@ http://localhost:8983/solr/select?q=apache&mlt=true&mlt.fl=manu,cat&mlt.mindf=1&mlt.mintf=1&fl=id,score + == MoreLikeThisHandler == + + When you specifically want information about similar documents, you can use the MoreLikeThisHandler. +
