Apache Solr open-source search software
some docs and a test (#1602)
Eric Pugh68dd1fe413f7
diff --git a/solr/packaging/test/test_export.bats b/solr/packaging/test/test_export.batsindex 3e797b3107a..40f5cbf609b 100644--- a/solr/packaging/test/test_export.bats+++ b/solr/packaging/test/test_export.bats@@ -35,3 +35,11 @@ teardown() {refute_output --partial 'Unrecognized option'assert_output --partial 'Export complete'}++@test "export fails on non cloud mode" {+ run solr start+ run solr create_core -c COLL_NAME+ run solr export -url "http://localhost:8983/solr/COLL_NAME"+ refute_output --partial 'Export complete'+ assert_output --partial "ERROR: Couldn't initialize a HttpClusterStateProvider"+}diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adocindex b6fa377decf..acd466242f7 100644--- a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc@@ -1384,6 +1384,8 @@ Examples of this command:The `export` command will allow you to export documents from a collection in either JSON or Javabin format.All documents can be exported, or only those that match a query.+NOTE: The `export` command only works with in a Solr running in cloud mode.+`bin/solr export [options]``bin/solr export -help`