You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2013/05/29 20:38:20 UTC

[jira] [Commented] (SOLR-4872) Allow analyzers to be SolrCoreAware

    [ https://issues.apache.org/jira/browse/SOLR-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669552#comment-13669552 ] 

Steve Rowe commented on SOLR-4872:
----------------------------------

On [SOLR-414|https://issues.apache.org/jira/browse/SOLR-414?focusedCommentId=12544617&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12544617], [~ryantxu] wrote about the SolrResourceLoader's *Aware restrictions:

{quote}
Adds valid class checking for "aware" registration. This is a simple check made to limit the scope of who can implement SolrCoreAware/ResourceLoaderAware if we want, we could easily remove this constraint
{quote}

So I think we could just remove them entirely.  Does anybody object?
                
> Allow analyzers to be SolrCoreAware
> -----------------------------------
>
>                 Key: SOLR-4872
>                 URL: https://issues.apache.org/jira/browse/SOLR-4872
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.3
>            Reporter: Benson Margulies
>
> I have a need, in an analyzer, to have a shared cache that is cleaned up when the core is torn down. Solr rejects analyzer components that are SolrCoreAware. Is there some really good reason for this? What harm would come from allowing one to register a CloseHook?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org