org.apache.nutch.searcher
Interface Searcher

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

public interface Searcher
extends org.apache.hadoop.io.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, int numHits, String dedupField, String sortField, boolean reverse)
          Return the top-scoring hits for a query.
 
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
Return the top-scoring hits for a query.

Throws:
IOException

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