You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2014/12/26 03:45:21 UTC

svn commit: r1647930 - /lucene/dev/trunk/solr/example/exampledocs/README.txt

Author: ehatcher
Date: Fri Dec 26 02:45:21 2014
New Revision: 1647930

URL: http://svn.apache.org/r1647930
Log:
Adjust films README using new bin/post script instead of curl

Modified:
    lucene/dev/trunk/solr/example/exampledocs/README.txt

Modified: lucene/dev/trunk/solr/example/exampledocs/README.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/exampledocs/README.txt?rev=1647930&r1=1647929&r2=1647930&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/exampledocs/README.txt (original)
+++ lucene/dev/trunk/solr/example/exampledocs/README.txt Fri Dec 26 02:45:21 2014
@@ -44,16 +44,11 @@ curl http://localhost:8983/solr/films/sc
     }
 ]'
 
-   * Now let's index the data. You could run either of the following commands from the example/exampledocs directory
+   * Now let's index the data, using one of these three commands:
 
-For JSON -
-curl 'http://localhost:8983/solr/films/update?commit=true' --data-binary @films.json -H 'Content-type:application/json'
-
-For XML -
-curl 'http://localhost:8983/solr/films/update?commit=true' --data-binary @films.xml -H 'Content-type:text/xml'
-
-For CSV -
-curl 'http://localhost:8983/solr/films/update?f.genre.split=true&f.directed_by.split=true&f.genre.separator=|&f.directed_by.separator=|&commit=true' --data-binary @films.csv -H 'Content-type:text/csv; charset=utf-8'
+     - JSON: bin/post films example/exampledocs/films.json
+     - XML: bin/post films example/exampledocs/films.xml
+     - CSV: bin/post films example/exampledocs/films.csv params=f.genre.split=true&f.directed_by.split=true&f.genre.separator=|&f.directed_by.separator=|
 
    * Let's get searching.
      - Search for 'Batman':