My couchdb index return this documents when I query it (this is ok) http://imgur.com/HoBBeSG.
When I want to search index with startkey and endkey, it will only return results based on first field of complex key ignoring the second field. http://imgur.com/QQYx64O.
Does anyone know what the problem is? Thanks.