Skip to content

Instantly share code, notes, and snippets.

@rnewson
Created October 15, 2014 22:36
Show Gist options
  • Save rnewson/4e67380013132d976770 to your computer and use it in GitHub Desktop.
Save rnewson/4e67380013132d976770 to your computer and use it in GitHub Desktop.
➜ cl-test git:(master) ✗ curl 'localhost:5984/_fti/local/db1/_design/couchapp/idx' -d 'q=*:*' -sv
* Adding handle: conn: 0x7f9761000000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f9761000000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 5984 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5984 (#0)
> POST /_fti/local/db1/_design/couchapp/idx HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:5984
> Accept: */*
> Content-Length: 5
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 5 out of 5 bytes
< HTTP/1.1 200 OK
< Vary: Accept
* Server Jetty(8.1.14.v20131031), CouchDB/1.6.0 (Erlang OTP/R14B01) is not blacklisted
< Server: Jetty(8.1.14.v20131031), CouchDB/1.6.0 (Erlang OTP/R14B01)
< ETag: 9bd26d015e9e
< Date: Wed, 15 Oct 2014 22:35:57 GMT
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 761
< Cache-Control: must-revalidate
<
* Connection #0 to host localhost left intact
{"q":"*:*","fetch_duration":2,"total_rows":13100,"limit":25,"search_duration":1,"etag":"9bd26d015e9e","skip":0,"rows":[{"score":1,"id":"doc-1"},{"score":1,"id":"doc-2"},{"score":1,"id":"doc-3"},{"score":1,"id":"doc-4"},{"score":1,"id":"doc-5"},{"score":1,"id":"doc-6"},{"score":1,"id":"doc-7"},{"score":1,"id":"doc-8"},{"score":1,"id":"doc-9"},{"score":1,"id":"doc-10"},{"score":1,"id":"doc-11"},{"score":1,"id":"doc-12"},{"score":1,"id":"doc-13"},{"score":1,"id":"doc-14"},{"score":1,"id":"doc-15"},{"score":1,"id":"doc-16"},{"score":1,"id":"doc-17"},{"score":1,"id":"doc-18"},{"score":1,"id":"doc-19"},{"score":1,"id":"doc-20"},{"score":1,"id":"doc-21"},{"score":1,"id":"doc-22"},{"score":1,"id":"doc-23"},{"score":1,"id":"doc-24"},{"score":1,"id":"doc-25"}]}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment