Re: Only highlight terms that caused a search hit/match

2014-02-19 Thread Steve Davids
d', but might have > matched for the wrong reason and therefore have mismatched highlighting. > > > Stuart > > > > -Original Message- > From: Michael McCandless [mailto:luc...@mikemccandless.com] > Sent: Saturday, February 15, 2014 2:54 AM > To: Lucene Use

RE: Only highlight terms that caused a search hit/match

2014-02-16 Thread Rose, Stuart J
x27;, but might have matched for the wrong reason and therefore have mismatched highlighting. Stuart -Original Message- From: Michael McCandless [mailto:luc...@mikemccandless.com] Sent: Saturday, February 15, 2014 2:54 AM To: Lucene Users Cc: sdav...@gmail.com Subject: Re: Only highl

Re: Only highlight terms that caused a search hit/match

2014-02-15 Thread Michael McCandless
Unfortunately, all Lucene's highlighters are "approximate" in this regard: there is no guarantee that the shown snippets, if they were a single little document, would have matched the query. Even the newest highlighter, PostingsHighlighter, doesn't look at positions, e.g. a PhraseQuery highlight c