[ https://issues.apache.org/jira/browse/SOLR-11801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16305986#comment-16305986 ]
David Smiley commented on SOLR-11801: ------------------------------------- If the point here to make it easier for Solr plugin authors (a subset of Solr users) to customize the highlighting response then wouldn't it be simpler to add a few protected methods to HighlightComponent and suggest it be subclassed, instead of adding a new abstraction "HighlightCollator"? Or if the objective is to also provide a hl.collator param with some options then I can understand that you might want this collator thing. But I'm not sure what value there is to your suggested hl.collator=mapmap|arrmap params... seems a matter of taste. BTW it would be nice if the highlight component's response was restructured to optionally allow returning richer information -- see SOLR-1954 (return char offsets). Certainly not to be tackled in this issue but just want to share. bq. David Smiley, you as part of SOLR-9708 deprecated some code portions and mentioned about future restructuring. It seems the changes proposed here would not interfere with such plans, do you agree? Yes. > support customisation of the "highlighting" query response element > ------------------------------------------------------------------ > > Key: SOLR-11801 > URL: https://issues.apache.org/jira/browse/SOLR-11801 > Project: Solr > Issue Type: New Feature > Components: highlighter > Reporter: Christine Poerschke > Assignee: Christine Poerschke > Priority: Minor > Attachments: SOLR-11801.patch > > > The objective and use case behind the proposed changes is to be able to > receive not the out-of-the-box highlighting map > {code} > { > ... > "highlighting" : { > "MA147LL/A" : { > "manu" : [ > "<em>Apple</em> Computer Inc." > ] > } > } > } > {code} > as illustrated in > https://lucene.apache.org/solr/guide/7_2/highlighting.html#highlighting-in-the-query-response > but to be able to customise the highlighting element of the query response > to (for example) be like this > {code} > { > ... > "highlighting" : [ > { > "id" : "MA147LL/A", > "snippets" : { > "manu" : [ > "<em>Apple</em> Computer Inc." > ] > } > } > ] > } > {code} > where the highlighting element itself is a list and where the keys of each > list element are 'knowable' in advance i.e. they are not 'unknowable' > document ids. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org