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

Karl Wright edited comment on SOLR-3015 at 1/11/12 12:56 AM:
-------------------------------------------------------------

Hoss: Missed your reply earlier; the amount of stuff related to Solr is often 
too great to reasonably digest, and I think that my company's mail server also 
bounces stuff once in a while without letting me know.  But as far as this is 
concerned:

bq. the concepts of "CloseHook" and "SolrCoreAware" are completely orthogonal 

... the best-practices document I found describes that as the preferred way to 
add a close hook, e.g.:

{code}
  public void inform(SolrCore core)
  {
    core.addCloseHook(new CloseHandler());
  }
{code}

Otherwise how are you supposed to call addCloseHook()?

                
      was (Author: [email protected]):
    Hoss: Missed your reply earlier; the amount of stuff related to Solr is 
often too great to reasonably digest, and I think that my company's mail server 
also bounces stuff once in a while without letting me know.  But as far as this 
is concerned:

bq. the concepts of "CloseHook" and "SolrCoreAware" are completely orthogonal 

... the best-practices document I found describes that as the preferred way to 
get a Solr Core object, e.g.:

{code}
  public void inform(SolrCore core)
  {
    core.addCloseHook(new CloseHandler());
  }
{code}

Otherwise how are you supposed to call addCloseHook()?

                  
> 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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