# How to create RabbitMq River using java api?

**URL:** <https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416>\
**Category:** Elasticsearch\
**Created:** [September 20, 2011, 12:50pm UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416 "2011-09-20T12:50:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@arun](https://discuss.elastic.co/u/arun)\
**Post date:** [September 20, 2011, 12:50pm UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/1 "2011-09-20T12:50:07Z")

</div>

Hi

I'm newbie for elastic search.i want to create index using Rabbitmq  
river using java.I had go through [http://www.elasticsearch.org/guide/reference/river/rabbitmq.html](http://www.elasticsearch.org/guide/reference/river/rabbitmq.html)  
but it does not give any information regarding which class or method  
will be helpful to create Rabbitmq river.please provide details  
description of how to use Rabbitmq river index creator class and also  
if u know any document regarding for it.

Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 20, 2011, 3:41pm UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/2 "2011-09-20T15:41:03Z")

</div>

As you can see in the page, creating a river is just a matter of _indexing_  
the river information into the \_river index. So, simply using the index API  
in Java with the relevant parameters (easily mapped from the curl sample)  
will do.

On Tue, Sep 20, 2011 at 3:50 PM, Arun [singh.arun8@gmail.com](mailto:singh.arun8@gmail.com) wrote:

> Hi
> 
> I'm newbie for Elasticsearch.i want to create index using Rabbitmq  
> river using java.I had go through  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/rabbitmq.html)  
> but it does not give any information regarding which class or method  
> will be helpful to create Rabbitmq river.please provide details  
> description of how to use Rabbitmq river index creator class and also  
> if u know any document regarding for it.
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 20, 2011, 4:54pm UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/3 "2011-09-20T16:54:01Z")

</div>

BTW, you can have a look at this : [https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/couchdb/src/test/java/org/elasticsearch/river/couchdb/CouchdbRiverAttachementTest.java](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/couchdb/src/test/java/org/elasticsearch/river/couchdb/CouchdbRiverAttachementTest.java)

David 😉

Le 20 sept. 2011 à 17:41, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) a écrit :

> As you can see in the page, creating a river is just a matter of _indexing_ the river information into the \_river index. So, simply using the index API in Java with the relevant parameters (easily mapped from the curl sample) will do.
> 
> On Tue, Sep 20, 2011 at 3:50 PM, Arun [singh.arun8@gmail.com](mailto:singh.arun8@gmail.com) wrote:  
> Hi
> 
> I'm newbie for Elasticsearch.i want to create index using Rabbitmq  
> river using java.I had go through [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/rabbitmq.html)  
> but it does not give any information regarding which class or method  
> will be helpful to create Rabbitmq river.please provide details  
> description of how to use Rabbitmq river index creator class and also  
> if u know any document regarding for it.
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@arun](https://discuss.elastic.co/u/arun)\
**Post date:** [September 21, 2011, 4:17am UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/4 "2011-09-21T04:17:16Z")

</div>

Thanks for reply.Is there is any java classes that help to create  
Rabbitmq river because my index data come from Rabbitmq queue so i  
need to use Rabbitmq river and also IS there is way to set my own  
configuration related to Rabbitmq river default.

On Sep 20, 9:54 pm, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:

> BTW, you can have a look at this :[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/ri](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/ri)...
> 
> David 😉
> 
> Le 20 sept. 2011 à 17:41, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) a écrit :
> 
> > As you can see in the page, creating a river is just a matter of _indexing_ the river information into the \_river index. So, simply using the index API in Java with the relevant parameters (easily mapped from the curl sample) will do.
> 
> > On Tue, Sep 20, 2011 at 3:50 PM, Arun [singh.ar...@gmail.com](mailto:singh.ar...@gmail.com) wrote:  
> > Hi
> 
> > I'm newbie for Elasticsearch.i want to create index using Rabbitmq  
> > river using java.I had go throughhttp://www.elasticsearch.org/guide/reference/river/rabbitmq.html  
> > but it does not give any information regarding which class or method  
> > will be helpful to create Rabbitmq river.please provide details  
> > description of how to use Rabbitmq river index creator class and also  
> > if u know any document regarding for it.
> 
> > Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 22, 2011, 11:05am UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/5 "2011-09-22T11:05:58Z")

</div>

Yes, there is. You simply "index" a document against the \_river index, thats  
the meta definition in the river. This part:  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/rabbitmq.html) shows how  
you create the river using curl, which basically ends up indexing a  
document. You can do the same using the Java API and index in a similar  
manner. here is a sample from a test:  
[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/rabbitmq/src/test/java/org/elasticsearch/river/rabbitmq/RabbitMQRiverTest.java](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/rabbitmq/src/test/java/org/elasticsearch/river/rabbitmq/RabbitMQRiverTest.java)  
.

On Wed, Sep 21, 2011 at 7:17 AM, Arun [singh.arun8@gmail.com](mailto:singh.arun8@gmail.com) wrote:

> Thanks for reply.Is there is any java classes that help to create  
> Rabbitmq river because my index data come from Rabbitmq queue so i  
> need to use Rabbitmq river and also IS there is way to set my own  
> configuration related to Rabbitmq river default.
> 
> On Sep 20, 9:54 pm, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> 
> > BTW, you can have a look at this :  
> > [https://github.com/elasticsearch/elasticsearch/blob/master/plugins/ri](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/ri)...
> > 
> > David 😉
> > 
> > Le 20 sept. 2011 à 17:41, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) a écrit :
> > 
> > > As you can see in the page, creating a river is just a matter of  
> > > _indexing_ the river information into the \_river index. So, simply using the  
> > > index API in Java with the relevant parameters (easily mapped from the curl  
> > > sample) will do.
> > 
> > > On Tue, Sep 20, 2011 at 3:50 PM, Arun [singh.ar...@gmail.com](mailto:singh.ar...@gmail.com) wrote:  
> > > Hi
> > 
> > > I'm newbie for Elasticsearch.i want to create index using Rabbitmq  
> > > river using java.I had go throughhttp://  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/rabbitmq.html)  
> > > but it does not give any information regarding which class or method  
> > > will be helpful to create Rabbitmq river.please provide details  
> > > description of how to use Rabbitmq river index creator class and also  
> > > if u know any document regarding for it.
> > 
> > > Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:53am UTC](https://discuss.elastic.co/t/how-to-create-rabbitmq-river-using-java-api/5416/6 "2017-07-06T03:53:50Z")

</div>


