org.apache.nutch.searcher
Interface Searcher

All Known Subinterfaces:
DistributedSearch.Protocol
All Known Implementing Classes:
DistributedSearch.Client, IndexSearcher, NutchBean

public interface Searcher

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, int numHits, String dedupField, String sortField, boolean reverse)
          Return the top-scoring hits for a query.
 

Method Detail

search

public Hits search(Query query,
                   int numHits,
                   String dedupField,
                   String sortField,
                   boolean reverse)
            throws IOException
Return the top-scoring hits for a query.

Throws:
IOException

getExplanation

public 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