
dawn at digitorial
Apr 20, 2012, 4:58 AM
Views: 166
Permalink
|
|
Highlighter and Shingles...
|
|
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*
|