# Exceptions in CouchDB river for \_design docs

**URL:** <https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404>\
**Category:** Elasticsearch\
**Created:** [October 4, 2010, 1:46pm UTC](https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404 "2010-10-04T13:46:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahendra\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahendra_m/32/3128_2.png) [@Mahendra\_M](https://discuss.elastic.co/u/Mahendra_M)\
**Post date:** [October 4, 2010, 1:46pm UTC](https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404/1 "2010-10-04T13:46:26Z")

</div>

Hi,

I just noticed that there are some exceptions while indexing couchdb  
design docs (created with couchapp).

The couchapp generated design docs are pretty complex. So, maybe there  
is a parse failure or in trying to determine the mapping.

I don't have access to my setup now, but IIRC the steps are:

- create an app using couchapp and push it to couchdb  
$ couchapp generate my\_app  
$ cd my\_app  
$ couchapp push . default

- Configure the couch river plugin (without any filter).

- The \_design/my\_app document generates an error.

I will check this again in detail tomorrow and update the list.

Regards,  
Mahendra

[http://twitter.com/mahendra](http://twitter.com/mahendra)

---

<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:** [October 4, 2010, 2:11pm UTC](https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404/2 "2010-10-04T14:11:12Z")

</div>

If you can, it would be great. I am not couchdb expert (actually, the first  
time I started it was to implement the river 😉 ). So, I need help from  
people who use couchdb to iron things out. If you can provide more  
information on the failure, then I can track it down. You mentioned in the  
wiki the design doc problem, is there a way that it can be detected that its  
a design document, so it won't be indexed?

On Mon, Oct 4, 2010 at 3:46 PM, Mahendra M [mahendra.m@gmail.com](mailto:mahendra.m@gmail.com) wrote:

> Hi,
> 
> I just noticed that there are some exceptions while indexing couchdb  
> design docs (created with couchapp).
> 
> The couchapp generated design docs are pretty complex. So, maybe there  
> is a parse failure or in trying to determine the mapping.
> 
> I don't have access to my setup now, but IIRC the steps are:
> 
> - create an app using couchapp and push it to couchdb  
> $ couchapp generate my\_app  
> $ cd my\_app  
> $ couchapp push . default
> 
> - Configure the couch river plugin (without any filter).
> 
> - The \_design/my\_app document generates an error.
> 
> I will check this again in detail tomorrow and update the list.
> 
> Regards,  
> Mahendra
> 
> [http://twitter.com/mahendra](http://twitter.com/mahendra)

---

<div class="post-metadata">

**Author:** ![Mahendra\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahendra_m/32/3128_2.png) [@Mahendra\_M](https://discuss.elastic.co/u/Mahendra_M)\
**Post date:** [October 5, 2010, 6:39am UTC](https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404/3 "2010-10-05T06:39:03Z")

</div>

Hi Shay,

On Mon, Oct 4, 2010 at 7:41 PM, Shay Banon wrote:

> If you can, it would be great. I am not couchdb expert

Neither am I 🙂

> If you can provide more information on the failure, then I can  
> track it down.

I noticed that this was happening for design docs with a lot map  
reduce functions and filters. The exception I was getting was:

[0]: index [abcd], type [pqrs], id [\_design/abcd], message  
[ArrayIndexOutOfBoundsException[10]]

> You mentioned in the wiki the design doc problem, is there  
> a way that it can be detected that its  
> a design document, so it won't be indexed?

As discussed in the other thread, '\_design/\*' can be used for  
filtering out design docs.

Also, with the patch in Issue #406, this problem will not happen anymore.

Regards,  
Mahendra

> On Mon, Oct 4, 2010 at 3:46 PM, Mahendra M [mahendra.m@gmail.com](mailto:mahendra.m@gmail.com) wrote:
> 
> > Hi,
> > 
> > I just noticed that there are some exceptions while indexing couchdb  
> > design docs (created with couchapp).
> > 
> > The couchapp generated design docs are pretty complex. So, maybe there  
> > is a parse failure or in trying to determine the mapping.
> > 
> > I don't have access to my setup now, but IIRC the steps are:
> > 
> > - create an app using couchapp and push it to couchdb  
> > $ couchapp generate my\_app  
> > $ cd my\_app  
> > $ couchapp push . default
> > 
> > - Configure the couch river plugin (without any filter).
> > 
> > - The \_design/my\_app document generates an error.
> > 
> > I will check this again in detail tomorrow and update the list.
> > 
> > Regards,  
> > Mahendra
> > 
> > [http://twitter.com/mahendra](http://twitter.com/mahendra)

--  
Mahendra

[http://twitter.com/mahendra](http://twitter.com/mahendra)

---

<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, 4:18am UTC](https://discuss.elastic.co/t/exceptions-in-couchdb-river-for--design-docs/3404/4 "2017-07-06T04:18:26Z")

</div>

Closed on July 6, 2017, 4:18am UTC


