lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: Highlighter and Shingles...
Date Fri, 20 Apr 2012 13:28:59 GMT
Hi Dawn,

Can you give an example of a "partial match"?

Steve

-----Original Message-----
From: Dawn Zoƫ Raison [mailto:dawn@digitorial.co.uk] 
Sent: Friday, April 20, 2012 7:59 AM
To: java-user@lucene.apache.org
Subject: 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*


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message