Lucene Excerpt Highlighting

Andreas Hartmann <[email protected]> Sun, 30 Mar 2003 14:43:52 -0800
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
Hi Michael, hi Lenya developers,

there is a small problem with Lucene excerpt highlighting:

When I use the lucene-tag-name and lucene-class-value META tags,
the indexing works correctly (only the text within the tag is
indexed). But if the search term appears in the excerpt before
the indexed text, it is highlighted at this position.

An example:

On cocooncenter, I have a menu "Home Articles Contact Search"
on every page. When I'm searching for "Contact", the word from
the menu text is highlighted, because it appears before the
actually found word in the body. This makes the excerpt virtually
useless for these search terms.

Can you imagine an easy solution?

Regards,
Andreas