[opencms-dev] Lucene-search: stop words aren't displayed in searchresultlist

Christian Steinert christian_steinert at web.de
Sat Jun 3 00:15:21 CEST 2006


Jason Trump schrieb:
> I ran into this exact problem.  The code that generates the highlights
> is using the lucene analyzer to normalize whitespace (remove carriage
> returns and such, I think), which has unpleasant the side-effect of
> stripping out words like "and", "or", and "the".
>
> I have a patch to the source code which replaces the lucene analyzer
> approach with a regular expression match that normalizes the whitespace,
> but leaves the text intact.  If you create an entry in bugzilla and
> email me the bug number, I'll attach my patch to the bug and maybe
> they'll accept it.
>
> jason
>   
Dear Jason,

could you mail me the pathed code? I would be interested in  what 
exactly you've changed...

thanks a lot
christian



More information about the opencms-dev mailing list