lucene-dev mailing list archives

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

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message