[ https://issues.apache.org/jira/browse/LUCENE-4906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629973#comment-13629973 ]
Luca Cavanna commented on LUCENE-4906: -------------------------------------- I see! If you couldn't make it how can I make it? :) But the idea is that you could have some kind of object as output instead of a string, like for example an array of tokens plus maybe some more information? It would avoid to parse again the string output and somehow re-analyze the text as needed to have a snippet that we could provide as output directly? > PostingsHighlighter's PassageFormatter should allow for rendering to > arbitrary objects > -------------------------------------------------------------------------------------- > > Key: LUCENE-4906 > URL: https://issues.apache.org/jira/browse/LUCENE-4906 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Michael McCandless > > For example, in a server, I may want to render the highlight result to > JsonObject to send back to the front-end. Today since we render to string, I > have to render to JSON string and then re-parse to JsonObject, which is > inefficient... > Or, if (Rob's idea:) we make a query that's like MoreLikeThis but it pulls > terms from snippets instead, so you get proximity-influenced salient/expanded > terms, then perhaps that renders to just an array of tokens or fragments or > something from each snippet. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org