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

Erik Hatcher updated SOLR-7915:
-------------------------------
    Attachment: SOLR-7915.patch

Here's a patch to implement this feature, including passing tests.

The one debatable piece in here is the use of SolrCore.createInstance.  
[~noble.paul] - thoughts?  What's the best way moving forward to instantiate 
classes that are dynamically "plugged in" either via <lib>, lib/, or blob store.

> Provide pluggable Velocity context tool facility
> ------------------------------------------------
>
>                 Key: SOLR-7915
>                 URL: https://issues.apache.org/jira/browse/SOLR-7915
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - Velocity
>    Affects Versions: 5.3
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>             Fix For: 5.4
>
>         Attachments: SOLR-7915.patch
>
>
> Currently the "tools" placed in the VelocityResponseWriter's context are 
> hard-coded.  It can be very handy to be able to plug in 3rd party or custom 
> tools (just any ol' Java object a "tool" can be).
> Here's a list of the currently hard-coded tools: 
> https://github.com/apache/lucene-solr/blob/trunk/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java#L189-L199



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to