lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spencer Tickner" <spencertick...@gmail.com>
Subject Re: Contrib Highlighter and Phrase search
Date Tue, 18 Mar 2008 21:48:23 GMT
Thanks, I'll give that a try.

Cheers,

Spencer

On Tue, Mar 18, 2008 at 1:50 PM, Mark Miller <markrmiller@gmail.com> wrote:
> The contrib Highlighter is not position sensitive. You can try out the
>  patch I have been working here if you are interested:
>  https://issues.apache.org/jira/browse/LUCENE-794
>
>
>
>  Spencer Tickner wrote:
>  > Hi List,
>  >
>  > Thanks in advance for any help. I'm working with the contrib
>  > highlighting class and am having issues when doing searches with a
>  > phrase. I've been able to duplicate this behaviour in the
>  > HighlighterTest class.
>  >
>  > When calling the testGetBestFragmentsPhrase() method I get the correct:
>  >
>  > <b>John</b>  <b>Kennedy</b>  has been shot
>  >
>  > However when I add "John" to the text so it reads:
>  >
>  > "John Kennedy has been John shot"
>  >
>  > I get:
>  >
>  > <b>John</b>  <b>Kennedy</b>  has been<b>John</b>
 shot
>  >
>  > It makes sense to me that John should not be highlighted. Has anyone
>  > else run into this problem? Anyone have a fix?
>  >
>  > Cheers,
>  >
>  > Spencer
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>  > For additional commands, e-mail: java-user-help@lucene.apache.org
>  >
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>  For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


Mime
View raw message