Skip to content

Commit 3fe4d75

Browse files
authored
Update java-admin-client.xml - fix store command
Without specifying the target collection using the `-c` or `--collection` argument, the command will fail with an appropriate error message. Thus, if the target collection is mandatory, it should be included in the examples.
1 parent a323b6d commit 3fe4d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/xar-resources/data/java-admin-client/java-admin-client.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313

314314
<para>To store a set of documents, use the <literal>-m</literal> and
315315
<literal>-p</literal> parameters. For instance:</para>
316-
<programlisting>bin/client.sh -m /db/shakespeare/plays -p /home/exist/xml/shakespeare</programlisting>
316+
<programlisting>bin/client.sh -c /db/shakespeare/plays -m /db/shakespeare/plays -p /home/exist/xml/shakespeare</programlisting>
317317
<itemizedlist>
318318
<listitem>
319319
<para>The <literal>-m</literal> tells the client to implicitly create any
@@ -329,7 +329,7 @@
329329
documents in that directory into the database. However, it will
330330
<emphasis>not</emphasis> recurse into subdirectories. For this, you have to
331331
pass the <literal>-d</literal> option. For example:</para>
332-
<programlisting>bin/client.sh -d -m /db/movies -p /home/exist/xml/movies</programlisting>
332+
<programlisting>bin/client.sh -d -c /db/movies -m /db/movies -p /home/exist/xml/movies</programlisting>
333333
<para>This will recurse into all directories below
334334
<literal>/home/exist/xml/movies</literal>. For each subdirectory, a
335335
collection will be created below the <literal>/db/movies</literal>

0 commit comments

Comments
 (0)