|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.nutch.ipc.Client
net.nutch.searcher.DistributedSearch.Client
The search client.
| Field Summary |
| Fields inherited from class net.nutch.ipc.Client |
LOG |
| 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 | |
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. |
ParseData |
getParseData(HitDetails hit)
Returns the ParseData 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)
|
Hits |
search(Query query,
int numHits)
Return the top-scoring hits for a query. |
| Methods inherited from class net.nutch.ipc.Client |
call, call, setTimeout, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DistributedSearch.Client(File file)
throws IOException
public DistributedSearch.Client(InetSocketAddress[] addresses)
throws IOException
| Method Detail |
public String[] getSegmentNames()
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
public String getSummary(HitDetails hit,
Query query)
throws IOException
HitSummarizer
getSummary in interface HitSummarizerhit - 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 HitSummarizerhits - 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 HitContentIOException
public ParseData getParseData(HitDetails hit)
throws IOException
HitContent
getParseData in interface HitContentIOException
public String[] getAnchors(HitDetails hit)
throws IOException
HitContent
getAnchors in interface HitContentIOException
public static void main(String[] args)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||