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 code...
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to