lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furkan KAMACI <>
Subject Re: How can I set configuration options?
Date Tue, 09 Apr 2013 18:21:22 GMT
Hi Edd;

The parameters you mentioned are JVM parameters. There are two ways to
define them.
First one is if you are using an IDE you can indicate them as JVM
parameters. i.e. if you are using Intellij IDEA when you click your
Run/Debug configurations there is a line called VM Options. You can write
your paramters without writing "java" word in front of them.

Second one is deploying your war file into Tomcat without using an IDE (I
think this is what you want). Here is what to do:

Go to tomcat home folder and under the bin folder create a file called Then add that lines:

-Dcollection.configName=myconf -DzkRun
-DzkHost=localhost:9983,localhost:8574,localhost:9900 -DnumShards=2"

2013/4/9 Edd Grant <>

> Hi all,
> I have been working through the examples on the SolrCloud page:
> I am now at the point where, rather than firing up Solr through start.jar,
> I'm deploying the Solr war in to Tomcat instances. Taking the following
> command as an example:
> java -Dbootstrap_confdir=./solr/collection1/conf
> -Dcollection.configName=myconf -DzkRun
> -DzkHost=localhost:9983,localhost:8574,localhost:9900 -DnumShards=2
> -jar start.jar
> I can't figure out from the documentation how/ where I set the above
> properties when deploying Solr as a war file. I initially thought these
> might be configurable through solr.xml but can't find anything in the
> documentation to support this.
> Most grateful for any pointers here.
> Cheers,
> Edd
> --
> Web:
> Email:
> Mobile: +44 (0) 7861 394 543

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message