[ 
https://issues.apache.org/jira/browse/SOLR-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tricia Williams updated SOLR-386:
---------------------------------

    Attachment: SOLR-386-SolrHighlighter.patch

This patch allows highlighting to be plugged in.

What I did:
 * Made SolrHighlighter an interface
 * The old SolrHighlighter became DefaultSolrHighlighter
 * Instantiate the highlighter in SolrCore based on what is in the 
solrconfig.xml

So to roll your own
 * Implement SolrHighlighter (ie org.apache.solr.highlight.MySolrHighlighter)
 * find <highlighting> in solrconfig.xml and modify to <highlighting 
class="org.apache.solr.highlight.MySolrHighlighter">

This patch builds on changes made to trunk by SOLR-281.  This patch also 
contains these changes (meaning you should apply this patch to the trunk).  I 
get the feeling that this is probably not the right way to build a dependent 
patch, but I don't know any better.  Let me know if I should change how I built 
this patch.

> Add confuguration to specify SolrHighlighter implementation
> -----------------------------------------------------------
>
>                 Key: SOLR-386
>                 URL: https://issues.apache.org/jira/browse/SOLR-386
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>    Affects Versions: 1.3
>            Reporter: Eli Levine
>         Attachments: SOLR-386-SolrHighlighter.patch
>
>
> It would be great if SolrCore allowed the highlighter class to be 
> configurable.  A good way would be to add a +class+ attribute to the 
> <highlighting> element in solrconfig.xml, similar to how the RequestHandler 
> instance is initialized in SorCore.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to