incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank Knight <hknight...@gmail.com>
Subject Strange values for "total_rows" and "offset"
Date Tue, 15 Oct 2013 12:38:13 GMT
There are only 10 matching results where the key is "GOLD":
http://example.com/abc/_design/iws/_view/q?key=%GOLD%22

However the first line of the response is this:

{"total_rows":52340,"offset":218,"rows":[

Why doesn't it say this?

{"total_rows":10,"offset":0,"rows":[

The problem is that when I limit results like this:

http://example.com/abc/_design/iws/_view/q?key=%GOLD%22&limit=5&skip=0

I cannot tell from the response if that response includes all matches or
only the first five.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message