...
Wiki Markup |
---|
Solr supports system property substitution, allowing the launching JVM to specify string substitutions within either of Solr's configuration files. The syntax {{$\{property\[:default value\]}}}. Substitutions are valid in any element or attribute text. Here's an example of allowing the runtime to dictate the data directory: |
No Format |
---|
<dataDir>${solr.data.dir:./solr/data}</dataDir>
|
And using the example application, Solr could be launched in this manner:
...