# About CouchDB Integration

**URL:** <https://discuss.elastic.co/t/about-couchdb-integration/6062>\
**Category:** Elasticsearch\
**Created:** [December 3, 2011, 7:20am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062 "2011-12-03T07:20:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goog\_Jobs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goog_jobs/32/2894_2.png) [@Goog\_Jobs](https://discuss.elastic.co/u/Goog_Jobs)\
**Post date:** [December 3, 2011, 7:20am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/1 "2011-12-03T07:20:25Z")

</div>

CouchDB Integration: [http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
,says that automatically index data  
in CouchDB .does it include attachment of a document in couchDB?

---

<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:** [December 3, 2011, 8:51am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/2 "2011-12-03T08:51:04Z")

</div>

Not yet. It only index the fact you have an attachment but not the attachment itself.

HTH  
David 😉  
@dadoonet

Le 3 déc. 2011 à 08:20, Goog Cheng [googcheng@gmail.com](mailto:googcheng@gmail.com) a écrit :

> CouchDB Integration: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
> ,says that automatically index data  
> in CouchDB .does it include attachment of a document in couchDB?

---

<div class="post-metadata">

**Author:** ![Goog\_Jobs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goog_jobs/32/2894_2.png) [@Goog\_Jobs](https://discuss.elastic.co/u/Goog_Jobs)\
**Post date:** [December 3, 2011, 9:36am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/3 "2011-12-03T09:36:10Z")

</div>

Thanks!if I want to index the attachment itself,how to do it?

2011/12/3 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

> Not yet. It only index the fact you have an attachment but not the  
> attachment itself.
> 
> HTH  
> David 😉  
> @dadoonet
> 
> Le 3 déc. 2011 à 08:20, Goog Cheng [googcheng@gmail.com](mailto:googcheng@gmail.com) a écrit :
> 
> > CouchDB Integration:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
> > ,says that automatically index data  
> > in CouchDB .does it include attachment of a document in couchDB?

---

<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:** [December 3, 2011, 10:18am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/4 "2011-12-03T10:18:04Z")

</div>

First : you can implement it here :  
\<[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/co](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/co)  
uchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java#L269\>  
[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/cou](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/cou)  
chdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java#L269

Second : you can index attachments yourself as attachment but you cant use  
the river for that. You can for example develop a batch that fetch content  
from the couchDb \_changes API and then get the attachments and push a new  
JSON document with attachment in it ( see also :  
[http://www.elasticsearch.org/guide/reference/mapping/attachment-type.html](http://www.elasticsearch.org/guide/reference/mapping/attachment-type.html)  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/attachment-type.html) )

David.

De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)]  
De la part de goog cheng  
Envoyé : samedi 3 décembre 2011 10:36  
À : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Objet : Re: about CouchDB Integration

Thanks!if I want to index the attachment itself,how to do it?

2011/12/3 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

Not yet. It only index the fact you have an attachment but not the  
attachment itself.

HTH  
David 😉  
@dadoonet

Le 3 déc. 2011 à 08:20, Goog Cheng [googcheng@gmail.com](mailto:googcheng@gmail.com) a écrit :

> CouchDB Integration:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
> ,says that automatically index data  
> in CouchDB .does it include attachment of a document in couchDB?

---

<div class="post-metadata">

**Author:** ![Goog\_Jobs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goog_jobs/32/2894_2.png) [@Goog\_Jobs](https://discuss.elastic.co/u/Goog_Jobs)\
**Post date:** [December 3, 2011, 10:35am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/5 "2011-12-03T10:35:56Z")

</div>

I hava used the couchriver plugin. I want to build a pdf docs search  
engine. I put the .pdf as a docunment attachment in couchDB. use ES to  
search it, can't get the content of pdf .

2011/12/3 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

> First : you can implement it here :  
> [https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java#L269](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/river/couchdb/src/main/java/org/elasticsearch/river/couchdb/CouchdbRiver.java#L269)
> 
> * * *
> 
> * * *
> 
> Second : you can index attachments yourself as attachment but you can’t  
> use the river for that. You can for example develop a batch that fetch  
> content from the couchDb \_changes API and then get the attachments and push  
> a new JSON document with attachment in it ( see also :  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/attachment-type.html))
> 
> * * *
> 
> * * *
> 
> David. \*\*\*\*
> 
> * * *
> 
> * * *
> 
> _De :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [mailto:  
> [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] _De la part de_ goog cheng  
> _Envoyé :_ samedi 3 décembre 2011 10:36  
> _À :_ [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> _Objet :_ Re: about CouchDB Integration\*\*\*\*
> 
> * * *
> 
> Thanks!if I want to index the attachment itself,how to do it?\*\*\*\*
> 
> 2011/12/3 David Pilato [david@pilato.fr](mailto:david@pilato.fr)\*\*\*\*
> 
> Not yet. It only index the fact you have an attachment but not the  
> attachment itself.
> 
> HTH  
> David 😉  
> @dadoonet
> 
> Le 3 déc. 2011 à 08:20, Goog Cheng [googcheng@gmail.com](mailto:googcheng@gmail.com) a écrit :\*\*\*\*
> 
> > CouchDB Integration:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
> > ,says that automatically index data  
> > in CouchDB .does it include attachment of a document in couchDB?\*\*\*\*
> 
> * * *

---

<div class="post-metadata">

**Author:** ![gondo\_2](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gondo\_2](https://discuss.elastic.co/u/gondo_2)\
**Post date:** [April 23, 2013, 2:24pm UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/6 "2013-04-23T14:24:21Z")

</div>

just out of curiosity, why do you use CouchDB and ES, cant you just use ES  
as it essentially behaves like no-sql db?

On Saturday, 3 December 2011 18:20:25 UTC+11, Goog Jobs wrote:

> CouchDB Integration:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)  
> ,says that automatically index data  
> in CouchDB .does it include attachment of a document in couchDB?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:39am UTC](https://discuss.elastic.co/t/about-couchdb-integration/6062/7 "2017-07-06T02:39:56Z")

</div>


