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

Robert Muir commented on SOLR-4872:
-----------------------------------

{quote}
then there was some confusion about Tokenizer.close(), and a ref to LUCENE-2145 
(which i suspect isn't particularly applicable since it's pretty old and the 
APIs have evolved heavily since then) 
{quote}

No, I think this is actually the core issue. Tokenizer.close() doesnt mean... 
close the Tokenizer. it means close the reader. This is super-confusing and it 
means Benson has no way to release resources. I really think we should fix 
this, not add any hacks to solr.
                
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to