mirror of https://github.com/apache/lucene.git
SOLR-6908: Remove last post.sh references, and fix a post.jar usage example
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1651013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ddea27113
commit
03dc3c4185
|
@ -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...
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue