Skip to content

Commit

Permalink
Solr indexing line
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Kuć authored and Rafał Kuć committed Apr 16, 2014
1 parent aba55df commit 5b1f293
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 2014/sample-documents/README.md
Expand Up @@ -2,3 +2,9 @@ To index the sample documents in Elasticsearch, you would run

cd sample-documents
for file in `ls -1 *.json`; do echo -n $file; curl -XPOST localhost:9200/es-solr/videos/ -d "`cat $file`"; echo; done

To index the sample documents in Solr, you would run

cd sample-documents
for file in *.json; do echo $file; curl 'http://localhost:8983/solr/update?commit=true' -H 'Content-type:application/json' -d "[`cat
$file`]"; echo; done

0 comments on commit 5b1f293

Please sign in to comment.