|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.searcher.IndexSearcher
public class IndexSearcher
Implements Searcher
and HitDetailer
for either a single
merged index, or a set of indexes.
Constructor Summary | |
---|---|
IndexSearcher(Path[] indexDirs,
Configuration conf)
Construct given a number of indexes. |
|
IndexSearcher(Path index,
Configuration conf)
Construct given a single merged index. |
Method Summary | |
---|---|
void |
close()
|
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)
Return the top-scoring hits for a query. |
Hits |
search(Query query,
int numHits,
String dedupField,
String sortField,
boolean reverse)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexSearcher(Path[] indexDirs, Configuration conf) throws IOException
IOException
public IndexSearcher(Path index, Configuration conf) throws IOException
IOException
Method Detail |
---|
@Deprecated public Hits search(Query query, int numHits, String dedupField, String sortField, boolean reverse) throws IOException
Searcher
search
in interface Searcher
IOException
public Hits search(Query query) throws IOException
Searcher
search
in interface Searcher
IOException
public String getExplanation(Query query, Hit hit) throws IOException
Searcher
getExplanation
in interface Searcher
IOException
public HitDetails getDetails(Hit hit) throws IOException
HitDetailer
getDetails
in interface HitDetailer
IOException
public HitDetails[] getDetails(Hit[] hits) throws IOException
HitDetailer
getDetails
in interface HitDetailer
IOException
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |