org.apache.nutch.searcher
Interface HitSummarizer

All Known Subinterfaces:
DistributedSearch.Protocol
All Known Implementing Classes:
DistributedSearch.Client, FetchedSegments, NutchBean

public interface HitSummarizer

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


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

Method Detail

getSummary

public String 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

public String[] 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