[ https://issues.apache.org/jira/browse/SOLR-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220645#comment-14220645 ]
Mikhail Khludnev commented on SOLR-4872: ---------------------------------------- fwiw, if someone else need to -shoot himself in leg- make TokenizerFactory or TokenFilterFactory SolrCoreAware ie violate restriction described at https://wiki.apache.org/solr/SolrPlugins#SolrCoreAware, just make your class implements QueryResponseWriter, and supply it with empty method impls. It will work until the assertion is improved. > Allow schema analysis object factories to be cleaned up properly when the > core shuts down > ----------------------------------------------------------------------------------------- > > Key: SOLR-4872 > URL: https://issues.apache.org/jira/browse/SOLR-4872 > Project: Solr > Issue Type: Improvement > Affects Versions: 4.3 > Reporter: Benson Margulies > Attachments: solr-4872.patch, solr-4872.patch > > > I have a need, in an TokenizerFactory or TokenFilterFactory, to have a shared > cache that is cleaned up when the core is torn down. > There is no 'close' protocol on these things, and Solr rejects analysis > components that are SolrCoreAware. > Possible solutions: > # add a close protocol to these factories and make sure it gets called at > core shutdown. > # allow these items to be 'core-aware'. > # invent some notion of 'schema-lifecycle-aware'. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org