lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawn Zoƫ Raison <d...@digitorial.co.uk>
Subject Highlighter and Shingles...
Date Fri, 20 Apr 2012 11:58:30 GMT
Hi,

Are there any notes on making the highlighter work consistently with a 
shingle generated index?
I have a situation where complete matches highlight OK, but partial 
matches do not - leading to a number of blank previews...

Our analyser look like:

         TokenStream result =
                 new StopFilter(Version.LUCENE_36,
                     new ShingleFilter(
                         new StopFilter(Version.LUCENE_36,
                                 new LowerCaseFilter(Version.LUCENE_36,
                                     new StandardFilter(Version.LUCENE_36,
                                         new 
StandardTokenizer(Version.LUCENE_36, reader)
                                             )
                                         ),
                             STOP_CHARS_SET)
                             ),
                         STOP_WORDS_SET);

-- 

Rgds.
*Dawn Raison*


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message