org.apache.solr.handler
Class MoreLikeThisHandler.MoreLikeThisHelper

java.lang.Object
  extended by 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
MoreLikeThisHandler.MoreLikeThisHelper(SolrParams params, SolrIndexSearcher searcher)
           
 
Method Summary
 org.apache.lucene.search.Query getBoostedMLTQuery()
           
 NamedList<DocList> getMoreLikeThese(DocList docs, int rows, int flags)
          Deprecated. 
 org.apache.lucene.search.similar.MoreLikeThis getMoreLikeThis()
           
 DocListAndSet getMoreLikeThis(int id, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags)
           
 DocListAndSet getMoreLikeThis(Reader reader, int start, int rows, List<org.apache.lucene.search.Query> filters, List<MoreLikeThisHandler.InterestingTerm> terms, int flags)
           
 org.apache.lucene.search.Query getRawMLTQuery()
           
 org.apache.lucene.search.Query getRealMLTQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoreLikeThisHandler.MoreLikeThisHelper

public MoreLikeThisHandler.MoreLikeThisHelper(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

getMoreLikeThese

@Deprecated
public NamedList<DocList> getMoreLikeThese(DocList docs,
                                                      int rows,
                                                      int flags)
                                    throws IOException
Deprecated. 

Throws:
IOException

getMoreLikeThis

public org.apache.lucene.search.similar.MoreLikeThis getMoreLikeThis()


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.