org.apache.nutch.searcher
Interface Searcher

All Superinterfaces:
Closeable
All Known Subinterfaces:
RPCSearchBean, SearchBean
All Known Implementing Classes:
DistributedSearchBean, IndexSearcher, LuceneSearchBean, NutchBean, SolrSearchBean

public interface Searcher
extends Closeable

Service that searches.


Method Summary
 String getExplanation(Query query, Hit hit)
          Return an HTML-formatted explanation of how a query scored.
 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. since 1.1, use search(Query) instead.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

search

Hits search(Query query,
            int numHits,
            String dedupField,
            String sortField,
            boolean reverse)
            throws IOException
Deprecated. since 1.1, use search(Query) instead.

Return the top-scoring hits for a query.

Throws:
IOException

search

Hits search(Query query)
            throws IOException
Return the top-scoring hits for a query.

Throws:
IOException
Since:
1.1

getExplanation

String getExplanation(Query query,
                      Hit hit)
                      throws IOException
Return an HTML-formatted explanation of how a query scored.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation