# Indexing a CouchDB view with ElasticSearch

**URL:** <https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510>\
**Category:** Elasticsearch\
**Created:** [January 26, 2012, 9:26am UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510 "2012-01-26T09:26:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@Daniel\_Gonzalez](https://discuss.elastic.co/u/Daniel_Gonzalez)\
**Post date:** [January 26, 2012, 9:26am UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/1 "2012-01-26T09:26:25Z")

</div>

Using the CouchDB river, it is possible to index CouchDB databases. Is  
it also possible to index a CouchDB view with Elastic Search?

I have been informed about the existence of this feature:

> <https://github.com/elastic/elasticsearch-river-couchdb/pull/2>

Is this the way to go. Is this making it up to trunk?

Thanks,

---

<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:** [January 26, 2012, 8:56pm UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/2 "2012-01-26T20:56:03Z")

</div>

Hi Daniel,

Shay is waiting for a new commit for this pull request that will make view  
management a bit more efficient.  
But, for this commit, I'm waiting for the feature request to be implemented  
: [Query DSL: Add ids\_prefix query and filter to fetch docs by prefix ids · Issue #1259 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1259)

So, the pull request will not be in trunk soon.

BTW, you can clone this :  
[https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi\_views](https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi_views) ,  
build it, install it as a plugin and play with views.  
Documentation to use it is here :  
[Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)

I will be pleased to have a feedback on it.

Cheers  
David.

> -----Message d'origine-----  
> De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Daniel Gonzalez  
> Envoyé : jeudi 26 janvier 2012 10:26  
> À : elasticsearch  
> Objet : Indexing a CouchDB view with Elasticsearch
> 
> Using the CouchDB river, it is possible to index CouchDB databases. Is  
> it also possible to index a CouchDB view with Elastic Search?
> 
> I have been informed about the existence of this feature:
> 
> [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> 
> Is this the way to go. Is this making it up to trunk?
> 
> Thanks,

---

<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:** [January 27, 2012, 8:50pm UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/3 "2012-01-27T20:50:10Z")

</div>

David, I will work on this issue, will try and make it into 0.19.

On Thursday, January 26, 2012 at 10:56 PM, David Pilato wrote:

> Hi Daniel,
> 
> Shay is waiting for a new commit for this pull request that will make view  
> management a bit more efficient.  
> But, for this commit, I'm waiting for the feature request to be implemented  
> : [Query DSL: Add ids\_prefix query and filter to fetch docs by prefix ids · Issue #1259 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1259)
> 
> So, the pull request will not be in trunk soon.
> 
> BTW, you can clone this :  
> [https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi\_views](https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi_views) ,  
> build it, install it as a plugin and play with views.  
> Documentation to use it is here :  
> [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> 
> I will be pleased to have a feedback on it.
> 
> Cheers  
> David.
> 
> > -----Message d'origine-----  
> > De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) ([mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com))  
> > [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Daniel Gonzalez  
> > Envoyé : jeudi 26 janvier 2012 10:26  
> > À : elasticsearch  
> > Objet : Indexing a CouchDB view with Elasticsearch
> > 
> > Using the CouchDB river, it is possible to index CouchDB databases. Is  
> > it also possible to index a CouchDB view with Elastic Search?
> > 
> > I have been informed about the existence of this feature:
> > 
> > [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> > 
> > Is this the way to go. Is this making it up to trunk?
> > 
> > Thanks,

---

<div class="post-metadata">

**Author:** ![Michael\_Sick](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Michael\_Sick](https://discuss.elastic.co/u/Michael_Sick)\
**Post date:** [January 27, 2012, 8:53pm UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/4 "2012-01-27T20:53:18Z")

</div>

Shay,

Is there a list of what to expect in 0.19? I looked at the Github issues  
but didn't see how to get a list of items being worked. Thanks,  
--Mike

On Fri, Jan 27, 2012 at 3:50 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> David, I will work on this issue, will try and make it into 0.19.
> 
> On Thursday, January 26, 2012 at 10:56 PM, David Pilato wrote:
> 
> Hi Daniel,
> 
> Shay is waiting for a new commit for this pull request that will make view  
> management a bit more efficient.  
> But, for this commit, I'm waiting for the feature request to be implemented  
> : [Query DSL: Add ids\_prefix query and filter to fetch docs by prefix ids · Issue #1259 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1259)
> 
> So, the pull request will not be in trunk soon.
> 
> BTW, you can clone this :  
> [https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi\_views](https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi_views) ,  
> build it, install it as a plugin and play with views.  
> Documentation to use it is here :  
> [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> 
> I will be pleased to have a feedback on it.
> 
> Cheers  
> David.
> 
> -----Message d'origine-----  
> De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)]  
> De la part de Daniel Gonzalez  
> Envoyé : jeudi 26 janvier 2012 10:26  
> À : elasticsearch  
> Objet : Indexing a CouchDB view with Elasticsearch
> 
> Using the CouchDB river, it is possible to index CouchDB databases. Is  
> it also possible to index a CouchDB view with Elastic Search?
> 
> I have been informed about the existence of this feature:
> 
> [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> 
> Is this the way to go. Is this making it up to trunk?
> 
> Thanks,

---

<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:** [January 27, 2012, 9:18pm UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/5 "2012-01-27T21:18:03Z")

</div>

Basically, 0.19 main features are done, anything additional is a "nice to have".

On Friday, January 27, 2012 at 10:53 PM, Michael Sick wrote:

> Shay,
> 
> Is there a list of what to expect in 0.19? I looked at the Github issues but didn't see how to get a list of items being worked. Thanks,  
> --Mike
> 
> On Fri, Jan 27, 2012 at 3:50 PM, Shay Banon \<[kimchy@gmail.com](mailto:kimchy@gmail.com) ([mailto:kimchy@gmail.com](mailto:kimchy@gmail.com))\> wrote:
> 
> > David, I will work on this issue, will try and make it into 0.19.
> > 
> > On Thursday, January 26, 2012 at 10:56 PM, David Pilato wrote:
> > 
> > > Hi Daniel,
> > > 
> > > Shay is waiting for a new commit for this pull request that will make view  
> > > management a bit more efficient.  
> > > But, for this commit, I'm waiting for the feature request to be implemented  
> > > : [Query DSL: Add ids\_prefix query and filter to fetch docs by prefix ids · Issue #1259 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1259)
> > > 
> > > So, the pull request will not be in trunk soon.
> > > 
> > > BTW, you can clone this :  
> > > [https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi\_views](https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi_views) ,  
> > > build it, install it as a plugin and play with views.  
> > > Documentation to use it is here :  
> > > [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> > > 
> > > I will be pleased to have a feedback on it.
> > > 
> > > Cheers  
> > > David.
> > > 
> > > > -----Message d'origine-----  
> > > > De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) ([mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com))  
> > > > [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Daniel Gonzalez  
> > > > Envoyé : jeudi 26 janvier 2012 10:26  
> > > > À : elasticsearch  
> > > > Objet : Indexing a CouchDB view with Elasticsearch
> > > > 
> > > > Using the CouchDB river, it is possible to index CouchDB databases. Is  
> > > > it also possible to index a CouchDB view with Elastic Search?
> > > > 
> > > > I have been informed about the existence of this feature:
> > > > 
> > > > [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> > > > 
> > > > Is this the way to go. Is this making it up to trunk?
> > > > 
> > > > Thanks,

---

<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:** [January 27, 2012, 9:20pm UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/6 "2012-01-27T21:20:46Z")

</div>

Thanks Shay.

David  
@dadoonet

Le 27 janv. 2012 à 21:50, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) a écrit :

> David, I will work on this issue, will try and make it into 0.19.  
> On Thursday, January 26, 2012 at 10:56 PM, David Pilato wrote:
> 
> > Hi Daniel,
> > 
> > Shay is waiting for a new commit for this pull request that will make view  
> > management a bit more efficient.  
> > But, for this commit, I'm waiting for the feature request to be implemented  
> > : [Query DSL: Add ids\_prefix query and filter to fetch docs by prefix ids · Issue #1259 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1259)
> > 
> > So, the pull request will not be in trunk soon.
> > 
> > BTW, you can clone this :  
> > [https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi\_views](https://github.com/dadoonet/elasticsearch-river-couchdb/tree/dpi_views) ,  
> > build it, install it as a plugin and play with views.  
> > Documentation to use it is here :  
> > [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> > 
> > I will be pleased to have a feedback on it.
> > 
> > Cheers  
> > David.
> > 
> > > -----Message d'origine-----  
> > > De : [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> > > [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] De la part de Daniel Gonzalez  
> > > Envoyé : jeudi 26 janvier 2012 10:26  
> > > À : elasticsearch  
> > > Objet : Indexing a CouchDB view with Elasticsearch
> > > 
> > > Using the CouchDB river, it is possible to index CouchDB databases. Is  
> > > it also possible to index a CouchDB view with Elastic Search?
> > > 
> > > I have been informed about the existence of this feature:
> > > 
> > > [Add support for views by dadoonet · Pull Request #2 · elastic/elasticsearch-river-couchdb · GitHub](https://github.com/elasticsearch/elasticsearch-river-couchdb/pull/2)
> > > 
> > > Is this the way to go. Is this making it up to trunk?
> > > 
> > > Thanks,

---

<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:** [February 29, 2012, 11:05am UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/7 "2012-02-29T11:05:53Z")

</div>

Hi there Shay,  
I think there's great merit in this feature.

It's an effective way of reducing the volume of data travelling across  
the wire. A CouchDb may contain a lot of data that isn't of value to  
ES, but a custom view could expose just the searchable metadata -  
reducing in better network and indexing efficiency.

The alternative solution of specifying a filter in the river appears  
to only handle cases where the metadata fields are know in advance.

cheers,  
Ian

On Jan 27, 8:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> David, I will work on this issue, will try and make it into 0.19.

---

<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:37am UTC](https://discuss.elastic.co/t/indexing-a-couchdb-view-with-elasticsearch/6510/8 "2017-07-06T03:37:54Z")

</div>


