org.apache.nutch.searcher
Interface HitSummarizer

All Known Subinterfaces:
RPCSegmentBean, SegmentBean
All Known Implementing Classes:
DistributedSegmentBean, FetchedSegments, NutchBean

public interface HitSummarizer

Service that builds a summary for a hit on a query.


Method Summary
 Summary[] getSummary(HitDetails[] details, Query query)
          Returns summaries for a set of details.
 Summary getSummary(HitDetails details, Query query)
          Returns a summary for the given hit details.
 

Method Detail

getSummary

Summary getSummary(HitDetails details,
                   Query query)
                   throws IOException
Returns a summary for the given hit details.

Parameters:
details - the details of the hit to be summarized
query - indicates what should be higlighted in the summary text
Throws:
IOException

getSummary

Summary[] getSummary(HitDetails[] details,
                     Query query)
                     throws IOException
Returns summaries for a set of details. Hook for parallel IPC calls.

Parameters:
details - the details of hits to be summarized
query - indicates what should be higlighted in the summary text
Throws:
IOException


Copyright © 2006 The Apache Software Foundation