org.opensolaris.opengrok.search
Class Summarizer

java.lang.Object
  extended by org.opensolaris.opengrok.search.Summarizer

public class Summarizer
extends java.lang.Object

Implements hit summarization.


Constructor Summary
Summarizer(org.apache.lucene.search.Query query, org.apache.lucene.analysis.Analyzer a)
           
 
Method Summary
 Summary getSummary(java.lang.String text)
          Returns a summary for the given pre-tokenized text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Summarizer

public Summarizer(org.apache.lucene.search.Query query,
                  org.apache.lucene.analysis.Analyzer a)
Method Detail

getSummary

public Summary getSummary(java.lang.String text)
                   throws java.io.IOException
Returns a summary for the given pre-tokenized text.

Throws:
java.io.IOException