Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16054: Better documentation of solr.environment property (#701)

Jan Høydahl0cf21d2fe576
diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
index fe09c59e6bc..34f807423d2 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/taking-solr-to-production.adoc
@@ -307,15 +307,16 @@ Setting the hostname of the Solr server is recommended, especially when running
To guard against accidentally doing changes to the wrong cluster, you may configure a visual indication in the Admin UI of whether you currently work with a production environment or not.
To do this, edit your `solr.in.sh` or `solr.in.cmd` file with a `-Dsolr.environment=prod` setting, or set the cluster property named `environment`.
-To specify label and/or color, use a comma-delimited format as below.
+Allowed values are `dev`, `test`, `stage` or `prod`. Each of these have default labels and colors predefined.
+To specify label and/or color, use a comma-delimited format as below. Label has to be defined before color.
The `+` character can be used instead of space to avoid quoting.
Colors may be valid CSS colors or numeric, e.g., `#ff0000` for bright red.
Examples of valid environment configs:
-* `prod`
-* `test,label=Functional+test`
-* `dev,label=MyDev,color=blue`
-* `dev,color=blue`
+* `prod` (default label is 'Production', default color is a tone of red)
+* `test,label=Functional+test` (default color will remain yellow, but override the label)
+* `dev,label=MyDev,color=blue` (override both label and color by name)
+* `stage,color=#ff8888` (customize color with code)
=== Override Settings in solrconfig.xml