lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Phrase Highlighting
Date Wed, 29 Apr 2009 09:27:28 GMT
You should switch to the SpanScorer (in o.a.l.search.highlighter).
That fragment scorer should only match true phrase matches.

Mike

On Tue, Apr 28, 2009 at 9:49 PM, Max Lynch <ihasmax@gmail.com> wrote:
> Hi,
> I am trying to find out exactly when a word I'm looking for in a document is
> found.  I've talked to a few people on IRC and it seems like the best way is
> to use a highlighter.  What I have right now is a system where I put each
> word the highlighter is called with into a list so I then know which words
> were found.  However, I am doing searches with phrases, like "John Smith",
> yet the highlighter processes "John" and "Smith" separately.  I have found
> several old mailing list references that deal with this issue but I haven't
> found one that I can understand.
>
> How can I make the highlighter handle my entire phrase instead of each word
> in the phrase?
>
> Thanks,
> Max
>

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