Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
Security Level: Public
-
None
Description
When using a view that reads a string that starts with an integer: ie date:
2012-07-30T03:26:12+00:00
From the client you are unable to request a startkey by year as it is sent as an integer in the URL request
query.setRangeStart("2000");
This will be translated as:
startkey=2000
But the request needs to be startkey="2000" for the comparison to work against a stored string.
This also causes requests for query.setRangeStart("0000"); to fail as 0000 is not a valid number.
The client should allow the developer to pick which JSON type they want to send.