|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.apache.nutch.searcher.DistributedSearch.Client
The search client.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DistributedSearch.Client(File file)
Construct a client talking to servers listed in the named file. |
|
DistributedSearch.Client(InetSocketAddress[] addresses)
Construct a client talking to the named servers. |
Method Summary | |
void |
close()
Stops the watchdog thread. |
String[] |
getAnchors(HitDetails hit)
Returns the anchors of a hit document. |
byte[] |
getContent(HitDetails hit)
Returns the content of a hit document. |
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. |
long |
getFetchDate(HitDetails hit)
Returns the anchors of a hit document. |
ParseData |
getParseData(HitDetails hit)
Returns the ParseData of a hit document. |
ParseText |
getParseText(HitDetails hit)
Returns the ParseText of a hit document. |
String[] |
getSegmentNames()
Return the names of segments searched. |
String[] |
getSummary(HitDetails[] hits,
Query query)
Returns summaries for a set of details. |
String |
getSummary(HitDetails hit,
Query query)
Returns a summary for the given hit details. |
static void |
main(String[] args)
|
void |
run()
|
Hits |
search(Query query,
int numHits,
String dedupField,
String sortField,
boolean reverse)
Return the top-scoring hits for a query. |
void |
updateSegments()
Updates segment names. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DistributedSearch.Client(File file) throws IOException
public DistributedSearch.Client(InetSocketAddress[] addresses) throws IOException
Method Detail |
public void updateSegments() throws IOException
IOException
public String[] getSegmentNames()
public Hits search(Query query, int numHits, String dedupField, String sortField, boolean reverse) 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 String getSummary(HitDetails hit, Query query) throws IOException
HitSummarizer
getSummary
in interface HitSummarizer
hit
- the details of the hit to be summarizedquery
- indicates what should be higlighted in the summary text
IOException
public String[] getSummary(HitDetails[] hits, Query query) throws IOException
HitSummarizer
getSummary
in interface HitSummarizer
hits
- the details of hits to be summarizedquery
- indicates what should be higlighted in the summary text
IOException
public byte[] getContent(HitDetails hit) throws IOException
HitContent
getContent
in interface HitContent
IOException
public ParseData getParseData(HitDetails hit) throws IOException
HitContent
getParseData
in interface HitContent
IOException
public ParseText getParseText(HitDetails hit) throws IOException
HitContent
getParseText
in interface HitContent
IOException
public String[] getAnchors(HitDetails hit) throws IOException
HitContent
getAnchors
in interface HitContent
IOException
public long getFetchDate(HitDetails hit) throws IOException
HitContent
getFetchDate
in interface HitContent
IOException
public static void main(String[] args) throws Exception
Exception
public void run()
run
in interface Runnable
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |