FYI, I made an update to this (I'm the author) to handle span queries. I uploaded the updated code to the same bugzilla link. The code doesn't treat span queries like phrases - it just highlights the terms individually (if someone can find a way to highlight it as a phrase, feel free to update it).
-----Original Message----- From: Fred Toth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 9:16 PM To: java-user@lucene.apache.org Subject: Re: Does highlighter highlight phrases only? Thanks Erik! I think I found it. For others who are interested: http://issues.apache.org/bugzilla/show_bug.cgi?id=35518 Fred Toth At 09:26 PM 6/28/2005, you wrote: >On Jun 28, 2005, at 9:09 PM, Fred Toth wrote: > >>Hi, >> >>I'm working with the highlighter and phrase queries and I'm seeing >>it highlight not >>the phrase, but also the individual terms. So if the phrase query >>is "heavy doses", we get that string highlighted, but also individual >>occurrences of "heavy" and "doses". >> >>I can't tell if that's because I'm doing something wrong or if that's >>just the way it works. >> >>Anybody know the answer to this one? > >That's just the way it works, currently. There is a new piece of >code just contributed residing in Bugzilla that (I think) highlights >just the phrases - have a look at that and see if that helps. > > Erik > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] "This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution"