Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Jan 19, 2015
1 parent fa9ef1d commit e288522
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Usage
-----

$ solrbulk
Usage: ./solrbulk [OPTIONS] FILE
Usage: solrbulk [OPTIONS] FILE
-commit=5000000: commit after this many docs
-cpuprofile="": write cpu profile to file
-host="localhost": elasticsearch host
Expand All @@ -34,6 +34,17 @@ Usage
-w=4: number of workers to use
-z=false: unzip gz'd file on the fly

Example
-------

$ cat file.ldj
{"id": "1", "state": "Alaska"}
{"id": "2", "state": "California"}
{"id": "3", "state": "Oregon"}
...

$ solrbulk -verbose -host 192.168.1.222 -port 8085 file.ldj

Some performance observations
-----------------------------

Expand Down

0 comments on commit e288522

Please sign in to comment.