Re: highlighter with query over more than one word

2016-06-03 Thread David Smiley
It would help tremendously if you can give a specific code example showing the problem. On Thu, Jun 2, 2016 at 6:41 AM Sascha Janz wrote: > > we use highlighter to get textfragments for our hit list. > > the code is straight forward like this > >Analyzer analyzer = new StandardAnalyzer(; >

highlighter with query over more than one word

2016-06-02 Thread Sascha Janz
we use highlighter to get textfragments for our hit list.   the code is straight forward like this    Analyzer analyzer = new StandardAnalyzer(;    QueryParser parser = new QueryParser( "content", analyzer);    Highlighter highlighter = new Highlighter(new QueryScorer(parser.parse(pQuery)));