[
https://issues.apache.org/jira/browse/SOLR-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556903#action_12556903
]
Yonik Seeley commented on SOLR-175:
-----------------------------------
We may want to use an "expandable" format that we can add new tags to later
since some people have expressed a desire to get the offsets into the source
text.
So instead of ["foo","bar","baz"]
[ {s="foo",off=156}, {s="bar",off=...}, {s="baz", off=...} ]
The other alternative would be parallel arrays (and move the tags for
expandibility up a level)... so for each fragment:
{ text=["foo","bar","baz"]
offsets=[156,...,...]
score=1.414
}
> Implement hl.formatter=interleave
> ---------------------------------
>
> Key: SOLR-175
> URL: https://issues.apache.org/jira/browse/SOLR-175
> Project: Solr
> Issue Type: Improvement
> Components: highlighter
> Reporter: Yonik Seeley
> Priority: Minor
>
> Implement hl.formatter=interleave
> http://www.nabble.com/Better-highlighting-fragmenter-tf2916742.html#a8154466
> From Wunder:
> '''We tried several APIs and decided that the best was an array of
> String with the odd elements containing the strings that needed
> highlighting. That made it really easy to step through and wrap
> highlighted stuff with the right markup, while properly escaping
> any angle brackets in the source text. '''
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.