Find Many with the startkey and endkey parameters. #3008
-
I have a db and i want to use this view:
I'm using the starkey and endkey parameters as in the documentation in Views Collation/Examples where it uses If i send
But if i change the order in the emit function:
And i send
Why i can't get the results of view where the key include a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
what error are you getting in your couch.log when you get |
Beta Was this translation helpful? Give feedback.
-
I suspect this is because you have spaces in your product names and they got misinterpreted during http request or parsing. Try to urlescape your keys, something like |
Beta Was this translation helpful? Give feedback.
I suspect this is because you have spaces in your product names and they got misinterpreted during http request or parsing. Try to urlescape your keys, something like
curl "http://anna:secret@localhost:5984/pruebaproyecto/_design/viewsales2/_view/sales_products_count?group=true&startkey=%5B%22Almohadilla%20Dactilar%20Artline%20X%201%20Unidad%20Huellero%205000%20Imps%22%5D&endkey=%5B%22Almohadilla%20Dactilar%20Artline%20X%201%20Unidad%20Huellero%205000%20Imps%22%2C%7B%7D%5D"