[ https://issues.apache.org/jira/browse/SOLR-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146798#comment-14146798 ]
Ryan Josal commented on SOLR-3015: ---------------------------------- I ran into a problem with this today. I have a QParserPlugin that would like to get some info from the index at startup, but without having it SolrCoreAware, I can't getSolrConfig().getDataDir(). Having run into the circular init problem before in the past, I understand the motive to reduce risk of problems. On a related note, I have a SearchComponent that wants to (but isn't allow to) be ResourceLoaderAware so it can load some data file from the config dir. Interestingly, QParserPlugin CAN be ResourceLoaderAware. At least with that one I can put the instanceDir in my config because that property is automatically populated, but I can't work around the data.dir problem that way because it is left blank. My personal feeling is that it would be great if these artificial limitations could be safely lifted somehow. > QParserPlugins can not be SolrCoreAware > --------------------------------------- > > Key: SOLR-3015 > URL: https://issues.apache.org/jira/browse/SOLR-3015 > Project: Solr > Issue Type: New Feature > Reporter: Karl Wright > Labels: closehook, qparserplugin, solrcoreaware > Fix For: 3.6, 4.0-ALPHA > > Attachments: SOLR-3015.patch > > > QParserPlugin cannot be made SolrCoreAware: > {code} > [junit] org.apache.solr.common.SolrException: Invalid 'Aware' object: > org.apache.solr.mcf.ManifoldCFQParserPlugin@18941f7 -- > org.apache.solr.util.plugin.SolrCoreAware must be an instance of: > [org.apache.solr.request.SolrRequestHandler] > [org.apache.solr.response.QueryResponseWriter] > [org.apache.solr.handler.component.SearchComponent] > [org.apache.solr.update.processor.UpdateRequestProcessorFactory] > [org.apache.solr.handler.component.ShardHandlerFactory] > {code} -- 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