org.apache.nutch.searcher
Class DistributedSearchBean

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

public class DistributedSearchBean
extends Object
implements SearchBean


Field Summary
 
Fields inherited from interface org.apache.nutch.searcher.SearchBean
LOG
 
Constructor Summary
DistributedSearchBean(Configuration conf, Path luceneConfig, Path solrConfig)
           
 
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
 

Constructor Detail

DistributedSearchBean

public DistributedSearchBean(Configuration conf,
                             Path luceneConfig,
                             Path solrConfig)
                      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

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
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()
Specified by:
ping in interface SearchBean


Copyright © 2006 The Apache Software Foundation