org.apache.nutch.searcher
Class SolrSearchBean

java.lang.Object
  extended by org.apache.nutch.searcher.SolrSearchBean
All Implemented Interfaces:
Closeable, HitDetailer, SearchBean, Searcher

public class SolrSearchBean
extends Object
implements SearchBean


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
SolrSearchBean(Configuration conf, String solrServer)
           
 
Method Summary
 void close()
           
 HitDetails getDetails(Hit hit)
          Returns the details for a hit document.
 HitDetails[] getDetails(Hit[] hits)
          Returns the details for a set of hits.
 String getExplanation(Query query, Hit hit)
          Return an HTML-formatted explanation of how a query scored.
 boolean ping()
           
 Hits search(Query query)
          Return the top-scoring hits for a query.
 Hits search(Query query, int numHits, String dedupField, String sortField, boolean reverse)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

SolrSearchBean

public SolrSearchBean(Configuration conf,
                      String solrServer)
               throws IOException
Throws:
IOException
Method Detail

getExplanation

public String getExplanation(Query query,
                             Hit hit)
                      throws IOException
Description copied from interface: Searcher
Return an HTML-formatted explanation of how a query scored.

Specified by:
getExplanation in interface Searcher
Throws:
IOException

search

public Hits search(Query query)
            throws IOException
Description copied from interface: Searcher
Return the top-scoring hits for a query.

Specified by:
search in interface Searcher
Throws:
IOException

search

@Deprecated
public Hits search(Query query,
                              int numHits,
                              String dedupField,
                              String sortField,
                              boolean reverse)
            throws IOException
Deprecated. 

Description copied from interface: Searcher
Return the top-scoring hits for a query.

Specified by:
search in interface Searcher
Throws:
IOException

getDetails

public HitDetails getDetails(Hit hit)
                      throws IOException
Description copied from interface: HitDetailer
Returns the details for a hit document.

Specified by:
getDetails in interface HitDetailer
Throws:
IOException

getDetails

public HitDetails[] getDetails(Hit[] hits)
                        throws IOException
Description copied from interface: HitDetailer
Returns the details for a set of hits. Hook for parallel IPC calls.

Specified by:
getDetails in interface HitDetailer
Throws:
IOException

ping

public boolean ping()
             throws IOException
Specified by:
ping in interface SearchBean
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation