# Problem CouchDB and attachment

**URL:** <https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515>\
**Category:** Elasticsearch\
**Created:** [November 4, 2010, 1:30am UTC](https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515 "2010-11-04T01:30:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![insiding](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@insiding](https://discuss.elastic.co/u/insiding)\
**Post date:** [November 4, 2010, 1:30am UTC](https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515/1 "2010-11-04T01:30:47Z")

</div>

Hi

Sorry for my english.

The goal is to index the documents attachament created in CouchDB.

I use version 0.12.1 and install plugin river-couchdb and mapper-  
attachments

I create index for my CouchDB

curl -XPUT 'localhost:9200/\_river/test01/\_meta' -d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "localhost",  
"port" : 5984,  
"db" : "test01",  
"filter" : null  
}  
}'

This work Fine.

But I also need to index the files attached to documents. And this is  
where  
I have problems. Try the following

curl-XPUT 'localhost: 9200/\_river/test01/\_meta'-d '  
{  
"Type": "CouchDB"  
"\_attachments": {"Type": "attachment"}

} '

and gives the following error:

[11/02/2010 13:09:05,380] [WARN] [river.couchdb] [Big Man] [CouchDB]  
[Test01] failed to read from \_changed, throttling ....  
java.io.FileNotFoundException:  
[http://localhost:5984/db/\_changes?feed=continuous&include\_docs=true&heartbeat=10000&since=13](http://localhost:5984/db/_changes?feed=continuous&include_docs=true&heartbeat=10000&since=13)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream  
(HttpURLConnection.java: 1439)  
org.elasticsearch.river.couchdb.CouchdbRiver at $ Slurper.run  
(CouchdbRiver.java: 343)  
at java.lang.Thread.run (Thread.java: 662)

Please need help to set the right way

Thank you very much

BSD  
Mario

---

<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:** [November 4, 2010, 7:59am UTC](https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515/2 "2010-11-04T07:59:42Z")

</div>

The couchdb river does not support indexing attachments yet..., even with  
attachment mapper type in elasticsearch (which I am not too happy with...).

On Tue, Nov 2, 2010 at 6:20 PM, insiding [insiding@netscape.net](mailto:insiding@netscape.net) wrote:

> Hi
> 
> Sorry for my english.
> 
> The goal is to index the documents attachament created in CouchDB.
> 
> I install plugin river-couchdb and mapper-attachments
> 
> I create index for my CouchDB
> 
> curl -XPUT 'localhost:9200/\_river/test01/\_meta' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "localhost",  
> "port" : 5984,  
> "db" : "test01",  
> "filter" : null  
> }  
> }'
> 
> This work Fine.
> 
> But I also need to index the files attached to documents. And this is  
> where  
> I have problems. Try the following
> 
> curl-XPUT 'localhost: 9200/\_river/test01/\_meta'-d '  
> {  
> "Type": "CouchDB"  
> "\_attachments": {"Type": "attachment"}
> 
> } '
> 
> and gives the following error:
> 
> [11/02/2010 13:09:05,380] [WARN] [river.couchdb] [Big Man] [CouchDB]  
> [Test01] failed to read from \_changed, throttling ....  
> java.io.FileNotFoundException:
> 
> [http://localhost:5984/db/\_changes?feed=continuous&include\_docs=true&heartbeat=10000&since=13](http://localhost:5984/db/_changes?feed=continuous&include_docs=true&heartbeat=10000&since=13)  
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream  
> (HttpURLConnection.java: 1439)  
> org.elasticsearch.river.couchdb.CouchdbRiver at $ Slurper.run  
> (CouchdbRiver.java: 343)  
> at java.lang.Thread.run (Thread.java: 662)
> 
> Please need help to set the right way
> 
> Thank you very much
> 
> BSD  
> Mario

---

<div class="post-metadata">

**Author:** ![emvar](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@emvar](https://discuss.elastic.co/u/emvar)\
**Post date:** [July 25, 2011, 10:55pm UTC](https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515/3 "2011-07-25T22:55:15Z")

</div>

Hi,

are there any near future plans of supporting attachment indexing of couchdb attachments (using both the attachment and the couchdb river plugin)? This sounds like quite a neat option for all the couchdb users..

Best,

Emil

---

<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:59am UTC](https://discuss.elastic.co/t/problem-couchdb-and-attachment/3515/4 "2017-07-06T03:59:31Z")

</div>


