Re: Highlighting and delineating Passages (fragmenting)

2017-05-30 Thread Dawid Weiss
https://issues.apache.org/jira/browse/SOLR-1105 Yes, this is spot-on what I need with regard to copyTo fields, thanks for the link! > Or are the overlaps coming from passage offset ranges from separate queries > to the same content? The overlaps are caused by the fact that we have multiple sour

Re: Highlighting and delineating Passages (fragmenting)

2017-05-30 Thread David Smiley
On Tue, May 30, 2017 at 9:25 AM Dawid Weiss wrote: > > #2 & #3 is the same requirement; you elaborate on #2 with more detail in > #3. > > The UH can't currently do this; but with the OH (original Highlighter) > you > > can but it appears somewhat awkward. See SimpleSpanFragmenter. I had > said

Re: Highlighting and delineating Passages (fragmenting)

2017-05-30 Thread Dawid Weiss
> #2 & #3 is the same requirement; you elaborate on #2 with more detail in #3. > The UH can't currently do this; but with the OH (original Highlighter) you > can but it appears somewhat awkward. See SimpleSpanFragmenter. I had said > it was easy but I was mistaken; I'm getting rustier on the OH.

Re: Highlighting and delineating Passages (fragmenting)

2017-05-30 Thread David Smiley
Looks like you should use the original Highlighter until requirement #2,3 can be done with the UnifiedHighlighter. Other than #2,3, the UH can handle all these requirements, and the OH can do all. On Sat, May 27, 2017 at 6:08 AM Dawid Weiss wrote: > Thanks for your explanation, David. > > I act

Re: Highlighting and delineating Passages (fragmenting)

2017-05-27 Thread Evert Wagenaar
I always assumed this was the default behaviour of the Lucene TermHighlighter but I could be mistaken with an older version. I found out that there are major differences between Lucene and Solr though, with which I have similar problems. Best regards, Evert Wagenaar http://www.evertwagenaar.com/

Re: Highlighting and delineating Passages (fragmenting)

2017-05-27 Thread Dawid Weiss
Thanks for your explanation, David. I actually found working with all Lucene highlighters pretty difficult. I have a few requirements which seemed deceptively simple: 1) highlight query hit regions (phrase, fuzzy, terms); 2) try to organise the resulting snippets to visually "center" the hit regi

Highlighting and delineating Passages (fragmenting)

2017-05-26 Thread David Smiley
I was recently asked if/how the UnifiedHighlighter can return a Passage centered around the highlighted words. I'm responding to a wider audience (java-user list, ...). Each highlighter implementation fragments the content into passages (with highlights) using a different algorithm. The UnifiedH