# \[ANN\] CouchDB river 1.2.0

**URL:** <https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978>\
**Category:** Elasticsearch\
**Created:** [May 15, 2013, 5:02pm UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978 "2013-05-15T17:02:57Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [May 15, 2013, 5:02pm UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/1 "2013-05-15T17:02:57Z")

</div>

Heya,

We've just released the new Couchdb river [1] 1.2.0 which is Elasticsearch 0.90.x compatible.

[1] [https://github.com/elasticsearch/elasticsearch-river-couchdb](https://github.com/elasticsearch/elasticsearch-river-couchdb)

## Best

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

See the replay of the webinar on the recently released Elasticsearch 0.90

---

<div class="post-metadata">

**Author:** ![ian\_mayo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ian_mayo/32/2324_2.png) [@ian\_mayo](https://discuss.elastic.co/u/ian_mayo)\
**Post date:** [May 16, 2013, 7:56am UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/2 "2013-05-16T07:56:11Z")

</div>

Thanks for that David,  
For some time you had an outstanding merge request to filter CouchDb river  
by feeds, though it now seems closed [1].

We still don't seem to have managed to get this capability into the river.  
Has this capability been overtaken by the "script" attribute? Or is there  
now an equivalent way of providing this capability? Whilst I can imagine  
how script transforms could simulate a CouchDb view, it wouldn't seem to  
get access to the CouchDb cacheing and optimisation.

Cheers,  
Ian

[1]. [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)

On Wednesday, 15 May 2013 18:04:35 UTC+1, David Pilato wrote:

> Heya,
> 
> We've just released the new Couchdb river [1] 1.2.0 which is Elasticsearch  
> 0.90.x compatible.
> 
> [1] [GitHub - elastic/elasticsearch-river-couchdb: CouchDB River Plugin for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-river-couchdb)
> 
> ## Best
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> See the replay of the webinar[http://info.elasticsearch.com/Register\_Recorded\_0.90\_Webinar.html](http://info.elasticsearch.com/Register_Recorded_0.90_Webinar.html)  
> on the recently released Elasticsearch 0.90

--  
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:** ![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:** [May 16, 2013, 8:01am UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/3 "2013-05-16T08:01:49Z")

</div>

It's reopened here: [Add support for views by dadoonet · Pull Request #24 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/24)

I hope we will be able to review my code soon.  
It's the last step we need before merging in master.

My guess is that it can happen in 1.3.0 but no ETA on that.

## HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 mai 2013 à 09:56, ian mayo [ian@planetmayo.com](mailto:ian@planetmayo.com) a écrit :

> Thanks for that David,  
> For some time you had an outstanding merge request to filter CouchDb river by feeds, though it now seems closed [1].
> 
> We still don't seem to have managed to get this capability into the river. Has this capability been overtaken by the "script" attribute? Or is there now an equivalent way of providing this capability? Whilst I can imagine how script transforms could simulate a CouchDb view, it wouldn't seem to get access to the CouchDb cacheing and optimisation.
> 
> Cheers,  
> Ian
> 
> [1]. [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> 
> On Wednesday, 15 May 2013 18:04:35 UTC+1, David Pilato wrote:
> 
> > Heya,
> > 
> > We've just released the new Couchdb river [1] 1.2.0 which is Elasticsearch 0.90.x compatible.
> > 
> > [1] [GitHub - elastic/elasticsearch-river-couchdb: CouchDB River Plugin for elasticsearch (STOPPED)](https://github.com/elasticsearch/elasticsearch-river-couchdb)
> > 
> > ## Best
> > 
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > See the replay of the webinar on the recently released Elasticsearch 0.90
> 
> --  
> 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).

--  
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:** ![Jordon](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jordon](https://discuss.elastic.co/u/Jordon)\
**Post date:** [June 18, 2013, 9:04am UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/4 "2013-06-18T09:04:53Z")

</div>

- deleted -

---

<div class="post-metadata">

**Author:** ![Jordon](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Jordon](https://discuss.elastic.co/u/Jordon)\
**Post date:** [June 18, 2013, 9:06am UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/5 "2013-06-18T09:06:18Z")

</div>

Dear sir,  
I am testing elasticsearch-river-couchdb(1.2.0). I have tried to follow the different tutorials and post on index and mapping attached document in a couchdb database for days without success. After running the codes below i don't have any hits from words that exist in the couchdb attached files.

software version:  
CouchDB: 1.2.1  
elasticsearch-river-couchdb: 1.2.0  
elasticsearch: 0.90  
elasticsearch-mapper-attachments: 1.7.0

1.create a index  
curl -XPUT "[http://127.0.0.1:9200/pdfcouchindex](http://127.0.0.1:9200/pdfcouchindex)"

2.create a mapping  
curl -XPUT '[http://127.0.0.1:9200/pdfcouchindex/pdftype/\_mapping](http://127.0.0.1:9200/pdfcouchindex/pdftype/_mapping)' -d '{  
"pdftype": {  
"properties" : {  
"\_attachments": {  
"properties": {  
""attachment"": {  
"type": "attachment","index" : "analyzed"  
}  
}  
},  
"title": {  
"type": "string"  
}  
}  
}  
}'

1. create the river  
curl -XPUT "[http://127.0.0.1:9200/\_river/pdfcouchindex/\_meta](http://127.0.0.1:9200/_river/pdfcouchindex/_meta)" -d '  
{  
"type": "couchdb",  
"couchdb": {  
"host": "127.0.0.1",  
"port": "5984",  
"db": "pdfcouch",  
"filter": null  
},  
"index": {  
"index": "pdfcouchindex",  
"type": "pdftype"  
}  
}'

2. Retrieve the indexed document by the keyword  
(1) curl -XPOST '[http://localhost:9200/pdfcouchindex/pdftype/\_search?pretty=true](http://localhost:9200/pdfcouchindex/pdftype/_search?pretty=true)' -d '{"query" : {"text" : { "\_all" : "Abstraction" } } }'  
{  
"took" : 7,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" : []  
}  
}

(2)[http://localhost:9200/pdfcouchindex/pdftype/\_search?q=\*&pretty=true](http://localhost:9200/pdfcouchindex/pdftype/_search?q=*&pretty=true)  
{  
"took" : 9,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 2,  
"max\_score" : 1.0,  
"hits" : [ {  
"\_index" : "pdfcouchindex",  
"\_type" : "pdftype",  
"\_id" : "60699284e3faaeef260fc43e7e00678a",  
"\_score" : 1.0, "\_source" : {"\_rev":"1-6dc6e91540ad3ccc4a0d54f66c7574ac","authors":"","organization":"","title":"mongodb","keywords":"","issn":"","abstracts":"","\_id":"60699284e3faaeef260fc43e7e00678a","address":"","\_attachments":{"attachment":{"stub":true,"length":366987,"digest":"md5-G52n3UVybIbCOuQe5eX2dg==","revpos":1,"content\_type":"application/pdf"}},"foundation":"","media":""}  
}, {  
"\_index" : "pdfcouchindex",  
"\_type" : "pdftype",  
"\_id" : "60699284e3faaeef260fc43e7e006d81",  
"\_score" : 1.0, "\_source" : {"\_rev":"1-2de491d3982a9f7ae0fb9b928dfc6c2e","authors":"","organization":"","title":"mongodb","keywords":"","issn":"","abstracts":"","\_id":"60699284e3faaeef260fc43e7e006d81","address":"","\_attachments":{"attachment":{"stub":true,"length":2357103,"digest":"md5-29s/N7EvL0E97d2uDqOkGw==","revpos":1,"content\_type":"application/pdf"}},"foundation":"","media":""}  
} ]  
}  
}

---

<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:30am UTC](https://discuss.elastic.co/t/ann-couchdb-river-1-2-0/11978/6 "2017-07-06T02:30:38Z")

</div>


