Skip to content

Commit 14cc008

Browse files
committedJun 3, 2011
fix correct bulk format
1 parent f3bbfae commit 14cc008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎blog/_posts/2010-09-28-the_river_rabbitmq.textile

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ nick: kimchy
99
p. Another "River":/blog/2010/09/28/the_river.html implementation, "RabbitMQ River":http://github.com/elasticsearch/elasticsearch/issues/380 allowing to automatically index a rabbitmq queue. The format of the messages follows the new "bulk api":http://github.com/elasticsearch/elasticsearch/issues/371 format:
1010

1111
<pre class="prettyprint lang-js">
12-
{ "index" : { "index" : "twitter", "type" : "tweet", "id" : "1" }
12+
{ "index" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" }
1313
{ "tweet" : { "text" : "this is a tweet" } }
14-
{ "delete" : { "index" : "twitter", "type" : "tweet", "id" : "2" } }
15-
{ "create" : { "index" : "twitter", "type" : "tweet", "id" : "1" }
14+
{ "delete" : { "_index" : "twitter", "_type" : "tweet", "_id" : "2" } }
15+
{ "create" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" }
1616
{ "tweet" : { "text" : "another tweet" } }
1717
</pre>
1818

0 commit comments

Comments
 (0)
Please sign in to comment.