A DSL I wrote for bulk loading elasticsearch data

Hey guys, thought others might find this useful. I wrote a DSL for bulk
loading data into elasticsearch from the CLI. It comes in a single .jar
with a very human readable syntax. While es_dump_restore looks nice I
needed a tool with no dependencies except java. It can be found
here: https://github.com/andrewvc/elastic-loader

An example import file might look something like:

Issue an HTTP Request, without stopping due to failure

TRY DELETE /foo

Issue an HTTP request that will stop the import if it fails

POST /foo {"_mapping": {}}

Bulk index items of type bar into the foo index

BULK INDEX foo/bar
{"user": "foo", "_id": 1}
{"user": "baz", "_id": 3}

Bulk index items of type baz into the foo index

BULK INDEX foo/baz
{"ohai": "bort"}
{"ohai": "there", "_id": 1}
DELETE /foo/baz/1

The tool itself is written in clojure, and should be pretty snappy.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

sounds good
it's use http, and I want to kown how it could insert into ES in one minute.
thanks.
在 2013年4月15日星期一UTC+8下午11时03分03秒,Andrew Cholakian写道:

Hey guys, thought others might find this useful. I wrote a DSL for bulk
loading data into elasticsearch from the CLI. It comes in a single .jar
with a very human readable syntax. While es_dump_restore looks nice I
needed a tool with no dependencies except java. It can be found here:
GitHub - andrewvc/elastic-loader: A tool for loading data into elastic-search in bulk

An example import file might look something like:

Issue an HTTP Request, without stopping due to failure

TRY DELETE /foo

Issue an HTTP request that will stop the import if it fails

POST /foo {"_mapping": {}}

Bulk index items of type bar into the foo index

BULK INDEX foo/bar
{"user": "foo", "_id": 1}
{"user": "baz", "_id": 3}

Bulk index items of type baz into the foo index

BULK INDEX foo/baz
{"ohai": "bort"}
{"ohai": "there", "_id": 1}
DELETE /foo/baz/1

The tool itself is written in clojure, and should be pretty snappy.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.