Stephen Greene wrote:
Hello,
I am trying to determine begin and end offsets for terms and phrases
matching a query.
Is there a way using either the highlighter or fast vector highlighter
in contrib?
I have already attempted extending the highlighter which would match
terms but would not match phrases.
Did you try QueryScorer? If I remember it correctly, QueryScorer
can recognize phrase matches. Note that QueryScorer can recognize phrases,
though, tagging works per term in phrase query, not phrase. i.e. if your
query is
phrase "foo bar", highlighter will return <b>foo</b> <b>bar</b>, not
<b>foo bar</b>.
Koji
--
http://www.rondhuit.com/en/
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org