Package org.apache.solr.handler
Class MoreLikeThisHandler.MoreLikeThisHelper
- java.lang.Object
- 
- org.apache.solr.handler.MoreLikeThisHandler.MoreLikeThisHelper
 
- 
- Enclosing class:
- MoreLikeThisHandler
 
 @NotThreadSafe public static class MoreLikeThisHandler.MoreLikeThisHelper extends Object Helper class for MoreLikeThis that can be called from other request handlers
- 
- 
Constructor SummaryConstructors Constructor Description MoreLikeThisHelper(org.apache.solr.common.params.SolrParams params, SolrIndexSearcher searcher)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.BooleanQuerygetBoostedMLTQuery()org.apache.lucene.search.BooleanQuerygetBoostedMLTQuery(int docNum)SetsboostedMLTQueryand returns itList<MoreLikeThisHandler.InterestingTerm>getInterestingTerms(org.apache.lucene.search.BooleanQuery boostedMLTQuery, int maxTerms)Yields terms with boosts from the boosted MLT query.org.apache.lucene.queries.mlt.MoreLikeThisgetMoreLikeThis()DocListAndSetgetMoreLikeThis(int id, int start, int rows, List<org.apache.lucene.search.Query> filters, int flags)DocListAndSetgetMoreLikeThis(Reader reader, int start, int rows, List<org.apache.lucene.search.Query> filters, int flags)org.apache.lucene.search.QuerygetRawMLTQuery()org.apache.lucene.search.QuerygetRealMLTQuery()
 
- 
- 
- 
Constructor Detail- 
MoreLikeThisHelperpublic MoreLikeThisHelper(org.apache.solr.common.params.SolrParams params, SolrIndexSearcher searcher) throws IOException- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
getRawMLTQuerypublic org.apache.lucene.search.Query getRawMLTQuery() 
 - 
getBoostedMLTQuerypublic org.apache.lucene.search.BooleanQuery getBoostedMLTQuery() 
 - 
getRealMLTQuerypublic org.apache.lucene.search.Query getRealMLTQuery() 
 - 
getMoreLikeThispublic DocListAndSet getMoreLikeThis(int id, int start, int rows, List<org.apache.lucene.search.Query> filters, int flags) throws IOException - Throws:
- IOException
 
 - 
getBoostedMLTQuerypublic org.apache.lucene.search.BooleanQuery getBoostedMLTQuery(int docNum) throws IOExceptionSetsboostedMLTQueryand returns it- Throws:
- IOException
 
 - 
getMoreLikeThispublic DocListAndSet getMoreLikeThis(Reader reader, int start, int rows, List<org.apache.lucene.search.Query> filters, int flags) throws IOException - Throws:
- IOException
 
 - 
getInterestingTermspublic List<MoreLikeThisHandler.InterestingTerm> getInterestingTerms(org.apache.lucene.search.BooleanQuery boostedMLTQuery, int maxTerms) Yields terms with boosts from the boosted MLT query.- Parameters:
- maxTerms- how many terms to return, a negative value means all terms are returned
 
 - 
getMoreLikeThispublic org.apache.lucene.queries.mlt.MoreLikeThis getMoreLikeThis() 
 
- 
 
-