Problem CouchDB and attachment

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
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

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 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
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

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