[ 
https://issues.apache.org/jira/browse/COUCHDB-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963777#comment-15963777
 ] 

Stefan Buhrmester commented on COUCHDB-2867:
--------------------------------------------

I guess the answer to this is somewhere in the erlang source. Unfortunately I 
don't know how to read it.

Concerning your request to hear from people with experience in *using* it, I've 
got some experience :P And I think implementing it without ".[]" to indicate 
that the field is an array would be just fine :P

Somebody simply has to do it. I would do it if I knew how...

> Mango: should be able to index *within* arrays
> ----------------------------------------------
>
>                 Key: COUCHDB-2867
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2867
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Mango
>            Reporter: Nolan Lawson
>
> If you have a document like:
> {code:javascript}
> {
>   "_id": "foo",
>   "tags": ["a", "b", "c"]
> }
> {code}
> ...then you should be able to run queries that find e.g. all documents with 
> "a" as a tag, and it should be *indexed*. Currently there doesn't seem to be 
> any way to do this except as an in-memory selector, which is a real bummer, 
> because it's a super common use case. (Tags, categories, labels, etc.)
> Originally I thought this was how {{$elemMatch}} worked, and I was surprised 
> to learn that that's not the case.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to