I am working with the gettingstarted example from the Solr Quick Start
guide.  I developed a couple of Solr plugins and I want to tell Solr where
to find them, and I'm following this
<https://wiki.apache.org/solr/SolrPlugins> guide to do it. For a single
core it was easy, I just put them in a lib directory under the instance
directory.  But now I am trying it with multiple cores.  In
/solr-5.4.0/server/solr, I updated the solr.xml file with sharedLib as
follows:

<solr>

  <solrcloud>

*    <str name="sharedLib">${sharedLib:}</str>*
    <str name="host">${host:}</str>
    <int name="hostPort">${jetty.port:8983}</int>
    <str name="hostContext">${hostContext:solr}</str>

    <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>

    <int name="zkClientTimeout">${zkClientTimeout:30000}</int>
    <int
name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
    <int
name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>

  </solrcloud>

  <shardHandlerFactory name="shardHandlerFactory"
    class="HttpShardHandlerFactory">
    <int name="socketTimeout">${socketTimeout:600000}</int>
    <int name="connTimeout">${connTimeout:60000}</int>
  </shardHandlerFactory>

</solr>


But when I start up Solr, the log says:  Unknown configuration parameter in
<solrcloud> section of solr.xml: sharedLib

Then I read that I need a core.properties file to contain the sharedLib
variable.  If this is true, where should I place this file?  Where should I
place my shared library containing my plugins?  One other question:  in the
gettingstarted example, what directory is the instance directory?

Thanks for the help.

Reply via email to