couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Sort a query by a time-senstive criteria
Date Tue, 12 Mar 2013 00:13:11 GMT

On Mar 11, 2013, at 5:09 PM, Robert Newson <rnewson@apache.org> wrote:

> index('purchase_date', purchase.time); // assuming purchase.time is an
> epoch integer.
> 
> and use ?q=purchase_date:[earliest TO latest]&sort="purchase_date"

I did not know about this. Found some docs: https://cloudant.com/for-developers/search/

—Jens
Mime
View raw message