On Thu, Jan 30, 2014 at 2:13 AM, Dan Santner <[email protected]> wrote: > var today = new Date();
This value will be computed only once when document get indexed, not each time when you query the view. You need to make key as outDoc.expiryAge and pass current date with endkey query parameter to fetch expired docs -- ,,,^..^,,,
