lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Spencer <>
Subject Re: highlighting phrases
Date Wed, 25 Aug 2004 20:49:47 GMT
Guido Wegener wrote:

> I am working on a modification to Lucene's highlighter. Currently all terms of
> a phrase query are highlighted, even if they appear out of phrase context:
> Searching for "Foo Bar" in "Foo Bar some stuff Foo" will result in
> "_Foo_ _Bar_ some stuff _Foo_". It would be nicer to have
> "_Foo_ _Bar_ some stuff Foo" as the result.
> I already implemented this behaviour in an older version of the highlighter,
> where things were still simple. But now I see that there was a modification to
> deal with overlapping tokens. These make the whole matter much more complicated.
Due, I believe, to a discovery I made w/ an Analyzer that takes 
advantage of this advanced Lucene functionality (mult tokens at same 
place). I'v since realized that this issue also affects query expansion 
> But I guess that I will try to merge my old phrase highlighter code with the
> current version of Lucene.
> Is anybody working on this kind of phrase highlighting?
> Would my modifications be of interest to you?
> Best regards,
>   Guido Wegener

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message