FAQ
Hi,

When I do an exact phrase query like "This is a query" in my index the
correct documents are found but the highlighter highlights all occurences of
the single words of the query even when they are not part of the phrase.

Does anybody how I can highlight only the exact phrase?

Thanks

Hans

Search Discussions

  • Digy at Apr 23, 2010 at 7:14 pm
    I don't know much about highlighter.
    Have you tried FastvectorHighlighter? it can give you more correct results
    related with phrase query.

    DIGY

    -----Original Message-----
    From: Hans Merkl
    Sent: Friday, April 23, 2010 9:31 PM
    To: lucene-net-user
    Subject: Highlighter highlights single words for exact phrase query

    Hi,

    When I do an exact phrase query like "This is a query" in my index the
    correct documents are found but the highlighter highlights all occurences of
    the single words of the query even when they are not part of the phrase.

    Does anybody how I can highlight only the exact phrase?

    Thanks

    Hans

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouplucene-net-user @
categorieslucene
postedApr 23, '10 at 6:36p
activeApr 23, '10 at 7:14p
posts2
users2
websitelucene.apache.org

2 users in discussion

Digy: 1 post Hans Merkl: 1 post

People

Translate

site design / logo © 2023 Grokbase