It is possible to make a search index to select documents whose aDate is between "2015/05/01" and "2015/05/03" (in this case only "doc2" should be selected)? Most examples out there are for key/value matching. How can I provide my own comparator? Is this even possible in Cloudant?

EDIT:

I have made an index:

function (doc) { if (doc.aDate) { index("date",doc.aDate); } }

Now I can successfully search a document in curl (look I am not escaping anything even though the documentation says I should:

The Cloudant Learning Center contains a video showing how to perform group, facet, and geo searches which provides some additional information on using different analyzers and querying dates. You can find the video here: https://cloudant.com/learning-center#indexes

@sharynr Thanks again! Unfortunately the link is broken. :( Perhaps you can send it such cheat sheet to my email ignacio at jp.ibm.com if you have them?

I've tried the suggestions without luck so far. I've noticed that ?q=created_at:"2015\/05\/15*" works fine I can find all my records so maybe the problem is not in the backslash but in the space and/or the brackets?

I ended up avoiding the slashes and strings. I converted the date strings to numbers and index that. (I know I should have stored dates as unix timestamps but for reasons I cannot fight they were in such format).