org.apache.nutch.summary.lucene
Class LuceneSummarizer

java.lang.Object
  extended by org.apache.nutch.summary.lucene.LuceneSummarizer
All Implemented Interfaces:
Configurable, Pluggable, Summarizer

public class LuceneSummarizer
extends Object
implements Summarizer

Implements hit summarization.


Field Summary
 
Fields inherited from interface org.apache.nutch.searcher.Summarizer
X_POINT_ID
 
Constructor Summary
LuceneSummarizer()
           
 
Method Summary
 Configuration getConf()
           
 Summary getSummary(String text, Query query)
          Get a summary for a specified text.
 void setConf(Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSummarizer

public LuceneSummarizer()
Method Detail

getConf

public Configuration getConf()
Specified by:
getConf in interface Configurable

setConf

public void setConf(Configuration conf)
Specified by:
setConf in interface Configurable

getSummary

public Summary getSummary(String text,
                          Query query)
Description copied from interface: Summarizer
Get a summary for a specified text.

Specified by:
getSummary in interface Summarizer
Parameters:
text - is the text to summarize.
query - is the query for which the text is a hit.


Copyright © 2006 The Apache Software Foundation