/[Apache-SVN]
ViewVC logotype

Revision 799455


Jump to revision: Previous Next
Author: markrmiller
Date: Thu Jul 30 22:00:47 2009 UTC (15 years, 3 months ago)
Changed paths: 13
Log Message:
LUCENE-1695: Update the Highlighter to use the new TokenStream API. This issue breaks backwards compatibility with some public classes. If you have implemented custom Fregmenters or Scorers,  you will need to adjust them to work with the new TokenStream API. Rather than getting passed a Token at a time, you will be given a TokenStream to init your impl with - store the Attributes you are interested in locally and access them on each call to the method that used to pass a new Token. Look at the included updated impls for examples.

Changed paths

Path Details
Directorylucene/java/trunk/contrib/CHANGES.txt modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Fragmenter.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/NullFragmenter.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SimpleFragmenter.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SimpleSpanFragmenter.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/SpanScorer.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java modified , text changed
Directorylucene/java/trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26