How the heck are you going to answer me? What's the context?
I think you couldn't give us less information if you tried. You need to explain the problem you are trying to solve, the solution you came up with. We need to see data model, example queries.
Also, this isn't a help forum. Ask in the CouchDB group, or on stack overflow.
For what it's worth, I'm going to guess that the problem is with how you wrote it.