|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.nutch.searcher.IndexSearcher
Implements Searcher and HitDetailer for either a single
merged index, or for a set of individual segment indexes.
| Constructor Summary | |
IndexSearcher(File[] segmentDirs)
Construct given a number of indexed segments. |
|
IndexSearcher(String index)
Construct given a directory containing fetched segments, and a separate directory naming their merged index. |
|
| Method Summary | |
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. |
Hits |
search(Query query,
int numHits)
Return the top-scoring hits for a query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IndexSearcher(File[] segmentDirs)
throws IOException
public IndexSearcher(String index)
throws IOException
| Method Detail |
public Hits search(Query query,
int numHits)
throws IOException
Searcher
search in interface SearcherIOException
public String getExplanation(Query query,
Hit hit)
throws IOException
Searcher
getExplanation in interface SearcherIOException
public HitDetails getDetails(Hit hit)
throws IOException
HitDetailer
getDetails in interface HitDetailerIOException
public HitDetails[] getDetails(Hit[] hits)
throws IOException
HitDetailer
getDetails in interface HitDetailerIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||