Save This Page
Home » nutch-1.0 » org.apache.nutch » searcher » [javadoc | source]
org.apache.nutch.searcher
public class: IndexSearcher [javadoc | source]
java.lang.Object
   org.apache.nutch.searcher.IndexSearcher

All Implemented Interfaces:
    Searcher, HitDetailer

Implements Searcher and HitDetailer for either a single merged index, or a set of indexes.
Constructor:
 public IndexSearcher(Path[] indexDirs,
    Configuration conf) throws IOException 
    Construct given a number of indexes.
 public IndexSearcher(Path index,
    Configuration conf) throws IOException 
    Construct given a single merged index.
Method from org.apache.nutch.searcher.IndexSearcher Summary:
close,   getDetails,   getDetails,   getExplanation,   search
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.searcher.IndexSearcher Detail:
 public  void close() throws IOException 
 public HitDetails getDetails(Hit hit) throws IOException 
 public HitDetails[] getDetails(Hit[] hits) throws IOException 
 public String getExplanation(Query query,
    Hit hit) throws IOException 
 public Hits search(Query query,
    int numHits,
    String dedupField,
    String sortField,
    boolean reverse) throws IOException