lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Endele (JIRA)" <>
Subject [jira] [Updated] (SOLR-6690) Highlight expanded results
Date Wed, 05 Nov 2014 11:22:33 GMT


Simon Endele updated SOLR-6690:

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:
>             Project: Solr
>          Issue Type: Wish
>            Reporter: Simon Endele
>            Priority: Minor
>              Labels: expand, highlight
>         Attachments:
> Is it possible to apply the highlighting to documents in the "expand" section in the
Solr response?
> I'm aware that 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message