lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allison, Timothy B." <>
Subject RE: Highlighting deprecation?
Date Wed, 02 Dec 2015 13:42:10 GMT
Y, to add to Scott's advice, make sure to use the NullFragmenter and make sure to setExpandMultiTermQuery
to true on your scorer

        QueryScorer scorer = new QueryScorer(query, field); 

 If you need to highlight entire phrases, see Koji Sekiguchi's recent recommendation for the
FastVectorHighlighter [0]...although iirc, that might not handle...this info may be out of
date though.

Finally, if you want to go it alone and get into the weeds, consider using [1] with [2].






-----Original Message-----
From: scott cote [] 
Sent: Tuesday, December 01, 2015 5:26 PM
Subject: Re: Highlighting deprecation?

checkout the highlight package …


> On Dec 1, 2015, at 4:16 PM, Kunzman, Douglas * <> wrote:
> Hi -
> I would like to thank everyone for their help in understanding Terms in Lucene over the
> After checking the documentation for a day or two I have another quick question.
> I'm trying to highlight all of the found terms in the document before displaying it and
have something working use getTokenStream from the class TokenSources.
> Unfortunately, in Lucene 5.3.1 everything is deprecated in that class and the documentation
don't appear to tell you were the "new" and better methods are located.
> Any ideas/suggestions?
> Doug

View raw message