You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Guido Wegener <gw...@startext.de> on 2004/08/25 18:51:07 UTC

highlighting phrases

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.
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

-- 
Guido Wegener
startext Unternehmensberatung GmbH
Kennedyallee 2, D-53175 Bonn
Tel: +49 (0)228 959 96-26, Fax: +49 (0)228 959 96-66
Internet: http://www.startext.de, E-Mail: gwe@startext.de
 


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


Re: highlighting phrases

Posted by Jason Calabrese <ma...@jasoncalabrese.com>.
> Is anybody working on this kind of phrase highlighting?
> Would my modifications be of interest to you?

I haven't started working on this yet, but my application does have this 
problem and I need to come up with a fix.  If you have any code to fix phrase 
highlighting I'd be more than happy to help test it.  Also if you need some 
help merging your previous fix I could possibly help with that.

Jason

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


Re: highlighting phrases

Posted by David Spencer <da...@tropo.com>.
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: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Re: highlighting phrases

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Guide, your modification sounds good.  If you can contribute it, that
would be great.

Otis

--- Guido Wegener <gw...@startext.de> 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.
> 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
> 
> -- 
> Guido Wegener
> startext Unternehmensberatung GmbH
> Kennedyallee 2, D-53175 Bonn
> Tel: +49 (0)228 959 96-26, Fax: +49 (0)228 959 96-66
> Internet: http://www.startext.de, E-Mail: gwe@startext.de
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
> 
> 


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