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
ight terms that caused a search hit/match 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, d

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

Only highlight terms that caused a search hit/match

2014-02-14 Thread Steve Davids
Hello, I have recently been given a requirement to improve document highlights within our system. Unfortunately, the current functionality gives more of a best-guess on what terms to highlight vs the actual terms to highlight that actually did perform the match. A couple examples of issues that