Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-6908: Remove last post.sh references, and fix a post.jar usage example

Erik Hatcher03dc3c41853e
diff --git a/solr/README.txt b/solr/README.txt
index f57cdd595c2..6b7387a1fc1 100644
--- a/solr/README.txt
+++ b/solr/README.txt
@@ -83,12 +83,11 @@ For instance, if you want to run the Solr Data Import Handler example, do:
Indexing Documents
---------------
-To add documents to the index, use the post.jar (or post.sh script) in
+To add documents to the index, use the post.jar in
the example/exampledocs subdirectory (while Solr is running), for example:
cd example/exampledocs
java -Dc=<collection_name> -jar post.jar *.xml
-Or: sh post.sh *.xml
For more information about Solr examples please read...
diff --git a/solr/site/html/tutorial.html b/solr/site/html/tutorial.html
index 725c1aad64b..7e332256ecc 100755
--- a/solr/site/html/tutorial.html
+++ b/solr/site/html/tutorial.html
@@ -131,16 +131,14 @@ These commands can be in a
<p>
The <span class="codefrag">exampledocs</span> directory contains sample files
showing of the types of commands Solr accepts, as well as a java utility
-for posting them from the command line (a <span class="codefrag">post.sh</span>
-shell script is also available, but for this tutorial we'll use the
-cross-platform Java client. Run <span class="codefrag">java -jar post.jar -h</span> so see it's various options).
+for posting them from the command line. Run <span class="codefrag">java -jar post.jar -h</span> so see it's various options.
</p>
<p> To try this, open a new terminal window, enter the exampledocs directory,
-and run "<span class="codefrag">java -jar post.jar</span>" on some of the XML
+and run "<span class="codefrag">java -Dc=collection_name -jar post.jar</span>" on some of the XML
files in that directory.
</p>
<pre class="code">
-user:~/solr/example/exampledocs$ <strong>java -jar post.jar solr.xml monitor.xml</strong>
+user:~/solr/example/exampledocs$ <strong>java -Dc=techproducts -jar post.jar solr.xml monitor.xml</strong>
SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file solr.xml
@@ -160,7 +158,7 @@ You can index all of the sample data, using the following command
(assuming your command line shell supports the *.xml notation):
</p>
<pre class="code">
-user:~/solr/example/exampledocs$ <strong>java -jar post.jar *.xml</strong>
+user:~/solr/example/exampledocs$ <strong>java -Dc=techproducts -jar post.jar *.xml</strong>
SimplePostTool: version 1.4
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file gb18030-example.xml