Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » search » highlight » [javadoc | source]
org.apache.lucene.search.highlight
public class: SimpleSpanFragmenter [javadoc | source]
java.lang.Object
   org.apache.lucene.search.highlight.SimpleSpanFragmenter

All Implemented Interfaces:
    Fragmenter

Fragmenter implementation which breaks text up into same-size fragments but does not split up Spans . This is a simple sample class.
Constructor:
 public SimpleSpanFragmenter(QueryScorer queryScorer) 
    Parameters:
    queryScorer - QueryScorer that was used to score hits
 public SimpleSpanFragmenter(QueryScorer queryScorer,
    int fragmentSize) 
    Parameters:
    queryScorer - QueryScorer that was used to score hits
    fragmentSize - size in bytes of each fragment
Method from org.apache.lucene.search.highlight.SimpleSpanFragmenter Summary:
isNewFragment,   start
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.highlight.SimpleSpanFragmenter Detail:
 public boolean isNewFragment() 
 public  void start(String originalText,
    TokenStream tokenStream)