Hi there,

this map function

"map": "function(doc) { if (doc.kml_id && doc.marker) { emit([doc.kml_id, doc.marker], doc) } }"

and this startkey

startkey: [id, 0]    --> sorting doc.marker

let me retrieve data from a couch as needed.

Now I got the task to add more languages beside English for description properties in an array structure like this

"language": [
    {
        "en":{

                }
    },
    {
         "fr": {

                 }
    }
]

I stuck in figuring out a startkey that let me retrieve the sorted data only for a particular language.

Any advice would be really appreciated.

Thanks,
Stephan

Reply via email to