# Create CouchDB Index with Java API

**URL:** <https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147>\
**Category:** Elasticsearch\
**Created:** [March 22, 2011, 10:28pm UTC](https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147 "2011-03-22T22:28:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luke/32/3253_2.png) [@Luke](https://discuss.elastic.co/u/Luke)\
**Post date:** [March 22, 2011, 10:28pm UTC](https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147/1 "2011-03-22T22:28:08Z")

</div>

I was hoping that you could help me out, I'm trying to cause elastic  
to create a couchdb river index, using the java api. Unfortunately I  
can't find any information on how to do it in java, and I'd rather not  
run straight http puts if there is a way to use the API.

Thanks in advance,  
Luke

---

<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:** [March 22, 2011, 10:36pm UTC](https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147/2 "2011-03-22T22:36:55Z")

</div>

Rivers are just stored in a special \_river index, and creating them is a simple index request of a document that represents the configuration of the river. In this sample: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/couchdb.html), you just index a doc into the \_river index, my\_db type, with id of \_meta, and the json there (using XContent to build it, Map of Maps, or just a string).  
On Wednesday, March 23, 2011 at 12:28 AM, Luke wrote:

> I was hoping that you could help me out, I'm trying to cause elastic  
> to create a couchdb river index, using the java api. Unfortunately I  
> can't find any information on how to do it in java, and I'd rather not  
> run straight http puts if there is a way to use the API.
> 
> Thanks in advance,  
> Luke

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luke/32/3253_2.png) [@Luke](https://discuss.elastic.co/u/Luke)\
**Post date:** [March 22, 2011, 10:39pm UTC](https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147/3 "2011-03-22T22:39:23Z")

</div>

That makes perfect sense,  
Thanks

On Tue, Mar 22, 2011 at 18:36, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Rivers are just stored in a special \_river index, and creating them is a  
> simple index request of a document that represents the configuration of the  
> river. In this sample:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/river/couchdb.html), you just  
> index a doc into the \_river index, my\_db type, with id of \_meta, and the  
> json there (using XContent to build it, Map of Maps, or just a string).
> 
> On Wednesday, March 23, 2011 at 12:28 AM, Luke wrote:
> 
> I was hoping that you could help me out, I'm trying to cause elastic  
> to create a couchdb river index, using the java api. Unfortunately I  
> can't find any information on how to do it in java, and I'd rather not  
> run straight http puts if there is a way to use the API.
> 
> Thanks in advance,  
> Luke

---

<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, 4:09am UTC](https://discuss.elastic.co/t/create-couchdb-index-with-java-api/4147/4 "2017-07-06T04:09:25Z")

</div>


