You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2023/05/01 20:28:06 UTC
[solr] branch branch_9x updated: some docs and a test (#1602)
This is an automated email from the ASF dual-hosted git repository.
epugh pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 810f16119cb some docs and a test (#1602)
810f16119cb is described below
commit 810f16119cb8bad3b232bd24484a7b220daa2cd0
Author: Eric Pugh <ep...@opensourceconnections.com>
AuthorDate: Mon May 1 16:27:25 2023 -0400
some docs and a test (#1602)
---
solr/packaging/test/test_export.bats | 8 ++++++++
.../deployment-guide/pages/solr-control-script-reference.adoc | 2 ++
2 files changed, 10 insertions(+)
diff --git a/solr/packaging/test/test_export.bats b/solr/packaging/test/test_export.bats
index 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.adoc
index 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`