KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > searcher > HitSummarizer


1 /* Copyright (c) 2003 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.searcher;
5
6 import java.io.IOException JavaDoc;
7
8 /** Service that builds a summary for a hit on a query. */
9 public interface HitSummarizer {
10   /** Returns a summary for the given hit details.
11    *
12    * @param details the details of the hit to be summarized
13    * @param query indicates what should be higlighted in the summary text
14    */

15   String JavaDoc getSummary(HitDetails details, Query query) throws IOException JavaDoc;
16
17   /** Returns summaries for a set of details. Hook for parallel IPC calls.
18    *
19    * @param details the details of hits to be summarized
20    * @param query indicates what should be higlighted in the summary text
21    */

22   String JavaDoc[] getSummary(HitDetails[] details, Query query) throws IOException JavaDoc;
23 }
24
Popular Tags