Yes, it works fine on regular views. -- J
On Jun 12, 2014, at 2:02 PM, Robert Samuel Newson <[email protected]> wrote: > Ah, to _all_docs, might not be hooked up yet. Before I replied earlier I had > verified "queries" against a regular view and that did indeed work. > > I’ll look at _all_docs soon. > > On 12 Jun 2014, at 17:41, Jean-Felix Girard <[email protected]> wrote: > >> Hi Russel and Robert, >> >> Thanks for the feedback. >> >> Unfortunately, it does not work with "queries" for me: >> >> ~:$ curl 'localhost:15984/test/_all_docs' -X POST -d >> '{"queries":[{"startkey":"a","endkey":"b"}]}' -H >> 'content-type:application/json' >> {"error":"badarg","reason":null,"stack":["erlang:length/1","fabric_view_all_docs:go/5 >> L66","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"]} >> >> I made sure my code in "1843-feature-bigcouch" was up-to-date. >> >> Anything else that can be wrong ? >> >> -- >> J >> >> >> >> On Jun 12, 2014, at 11:59 AM, Russell Branca <[email protected]> wrote: >> >>> Hi Jean, >>> >>> The top level field for multi view queries is "queries", try that instead >>> of "keys". Let me know if you're still having issues. >>> >>> -Russell >>> On Jun 12, 2014 6:21 AM, "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 >>>> >>>> >>>> >>>> >> >
