Package org.apache.solr.handler
Class MoreLikeThisHandler.MoreLikeThisHelper
- java.lang.Object
-
- org.apache.solr.handler.MoreLikeThisHandler.MoreLikeThisHelper
-
- Enclosing class:
- MoreLikeThisHandler
public static class MoreLikeThisHandler.MoreLikeThisHelper extends Object
Helper class for MoreLikeThis that can be called from other request handlers
-
-
Constructor Summary
Constructors Constructor Description MoreLikeThisHelper(org.apache.solr.common.params.SolrParams params, SolrIndexSearcher searcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.QuerygetBoostedMLTQuery()org.apache.solr.common.util.NamedList<org.apache.lucene.search.BooleanQuery>getMoreLikeTheseQuery(DocList docs)org.apache.lucene.queries.mlt.MoreLikeThisgetMoreLikeThis()DocListAndSetgetMoreLikeThis(int id, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags)DocListAndSetgetMoreLikeThis(Reader reader, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags)org.apache.lucene.search.QuerygetRawMLTQuery()org.apache.lucene.search.QuerygetRealMLTQuery()
-
-
-
Constructor Detail
-
MoreLikeThisHelper
public MoreLikeThisHelper(org.apache.solr.common.params.SolrParams params, SolrIndexSearcher searcher)
-
-
Method Detail
-
getRawMLTQuery
public org.apache.lucene.search.Query getRawMLTQuery()
-
getBoostedMLTQuery
public org.apache.lucene.search.Query getBoostedMLTQuery()
-
getRealMLTQuery
public org.apache.lucene.search.Query getRealMLTQuery()
-
getMoreLikeThis
public DocListAndSet getMoreLikeThis(int id, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags) throws IOException
- Throws:
IOException
-
getMoreLikeThis
public DocListAndSet getMoreLikeThis(Reader reader, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags) throws IOException
- Throws:
IOException
-
getMoreLikeTheseQuery
public org.apache.solr.common.util.NamedList<org.apache.lucene.search.BooleanQuery> getMoreLikeTheseQuery(DocList docs) throws IOException
- Throws:
IOException
-
getMoreLikeThis
public org.apache.lucene.queries.mlt.MoreLikeThis getMoreLikeThis()
-
-