On 6/27/2015 6:05 PM, Ming Liang wrote:
> Sorry,
>    I have solved the problem by coping the necessary libs from
> "solr/contrib/analysis-extras"
> to"solr/server/solr-webapp/webapp/WEB-INF/lib" .
> I didn't realise that solr-webapp is the true "solr-home"

That's not the solr home.

solr-webapp is where the WAR file is extracted by Jetty.  This location
is subject to removal and/or change at any time, it is not a good place
to drop additional jars.  It does WORK, but it's not a good place.

If you are using the downloaded artifacts and the bin/solr script in a
non-cloud way, then the solr home will be server/solr.  You should
create server/solr/lib and put extra jars there.

If you're running a cloud example, then the solr home will be different
for each node in the cloud.  The following page has info about how to
start the individual solr nodes once the cloud example has created them:

https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud

Here is one of those commands that you can find on that page:

solr start -cloud -s example/cloud/node1/solr -p 8983

As you can see, the -s option (which sets the solr home) is used.

Thanks,
Shawn

Reply via email to