[
https://issues.apache.org/jira/browse/SOLR-6690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Endele updated SOLR-6690:
-------------------------------
Attachment: HighlightComponent.java.patch
Added a patch for Solr core trunk.
I'm not a Solr core expert. It's just a rough sketch, but it seems to work.
Still to do:
- The order of the ExpandComponent and the HighlightComponent needs to be
switched to make it work (as mentioned in the issue description). I'm not sure
what effects changing the default order in
org.apache.solr.handler.component.SearchHandler.getDefaultComponents() may have.
- It would be good to have a config param to turn this on, I guess. Suggestion:
{{hl.expanded=true/false}}.
> Highlight expanded results
> --------------------------
>
> Key: SOLR-6690
> URL: https://issues.apache.org/jira/browse/SOLR-6690
> Project: Solr
> Issue Type: Wish
> Reporter: Simon Endele
> Priority: Minor
> Labels: expand, highlight
> Attachments: HighlightComponent.java.patch
>
>
> Is it possible to apply the highlighting to documents in the "expand" section
> in the Solr response?
> I'm aware that https://cwiki.apache.org/confluence/x/jiBqAg states:
> "All downstream components (faceting, highlighting, etc...) will work with
> the collapsed result set."
> So I tried to put the highlight component after the expand component like
> this:
> {code:xml}<arr name="components">
> <str>query</str>
> <str>facet</str>
> <str>stats</str>
> <str>debug</str>
> <str>expand</str>
> <str>highlight</str>
> </arr>{code}
> But with no effect.
> Is there another switch that needs to be flipped or could this be implemented
> easily?
> IMHO this is quite a common use case...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]