It's "queries" not "keys" when using the multi query option. 

Sent from my iPad

> On 12 Jun 2014, at 14:21, Jean-Felix Girard <[email protected]> wrote:
> 
> Hi,
> 
> One feature I look forward and want to test is the possibility to query a 
> view with multiple "ranges" (startkey + endkey) - 
> https://issues.apache.org/jira/browse/COUCHDB-523.  I saw a commit to address 
> it : 
> https://github.com/apache/couchdb-couch-mrview/commit/3688736b81c8b8b6485cb136eea836bd729d152f.
>   From my understanding, the bigcouch merge branch uses 
> "couchdb-couch-mrview", master which include the commit.  Is it really the 
> case ?
> 
> I tried but could not make it work.  
> 
> For instance:
> 
> curl 'localhost:15984/test/_all_docs' -X POST -d 
> '{"keys":[{"startkey":"a","endkey":"z"}]}' -H 'content-type:application/json' 
> -0
> 
> 
> {"total_rows":5,"rows":[
> HTTP/1.0 500 Internal Server Error
> X-CouchDB-Body-Time: 0
> X-Couch-Request-ID: b1ad2ba2
> Server: CouchDB/c9a3fc1 (Erlang OTP/R16B03-1)
> Date: Thu, 12 Jun 2014 13:15:09 GMT
> Content-Type: text/plain; charset=utf-8
> Content-Length: 242
> Cache-Control: must-revalidate
> 
> {"error":"badmatch","reason":"timeout","stack":["fabric_view_all_docs:go/5 
> L76","couch_httpd:etag_maybe/2 L592","chttpd_db:all_docs_view/3 
> L512","chttpd:handle_request/1 L206","mochiweb_http:headers/5 
> L93","proc_lib:init_p_do_apply/3 L239"]}
> 
> 
> Any pointer would help!
> 
> Thanks.
> --
> J
> 
> 
> 

Reply via email to