Sam_4
(Sam)
January 9, 2012, 4:41am
1
Hi
I'm confuse using index and create bulk command.
**Important**: This project has been stopped since elasticsearch 2.0.
----
RabbitMQ River Plugin for Elasticsearch
==================================
The RabbitMQ River plugin allows index [bulk format messages](http://www.elasticsearch.org/guide/reference/api/bulk/) into elasticsearch.
RabbitMQ River allows to automatically index a [RabbitMQ](http://www.rabbitmq.com/) queue. The format of the messages follows the bulk api format:
```javascript
{ "index" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" } }
{ "tweet" : { "text" : "this is a tweet" } }
{ "delete" : { "_index" : "twitter", "_type" : "tweet", "_id" : "2" } }
{ "create" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" } }
{ "tweet" : { "text" : "another tweet" } }
```
**Rivers are [deprecated](https://www.elastic.co/blog/deprecating_rivers) and will be removed in the future.**
Have a look at [logstash rabbitmq input](http://www.elastic.co/guide/en/logstash/current/plugins-inputs-rabbitmq.html).
This file has been truncated. show original
{ "index" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" } }
{ "tweet" : { "text" : "this is a tweet" } }
{ "create" : { "_index" : "twitter", "_type" : "tweet", "_id" :
"1" } }
{ "tweet" : { "text" : "another tweet" } }
when used index or create and what effect happen when using both of
them.
Thanks
Hi,
create means that the document is indexed only if it does not exists in
the index yet (recognized by its "_id"), otherwise it will fail.
See "Operation Type" in
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
Regards,
Lukas
On Mon, Jan 9, 2012 at 5:41 AM, sam mishra.sameek@gmail.com wrote:
Hi
I'm confuse using index and create bulk command.
https://github.com/elasticsearch/elasticsearch-river-rabbitmq/blob/master/README.md
{ "index" : { "_index" : "twitter", "_type" : "tweet", "_id" : "1" } }
{ "tweet" : { "text" : "this is a tweet" } }
{ "create" : { "_index" : "twitter", "_type" : "tweet", "_id" :
"1" } }
{ "tweet" : { "text" : "another tweet" } }
when used index or create and what effect happen when using both of
them.
Thanks