On Thu, Apr 8, 2010 at 8:41 AM, Ning Tan <[email protected]> wrote:
> My filter function is
>
> function(doc, req)
> {
>   return true;
> }
>
> :-)

What I meant is that I'm even having the hanging problem with the
above barebones function. The actual function I wrote earlier was:

function (doc, req)
{
        // !code lib/json/json2.js

        var found = false;
        
        if (req.query.oids)
        {
                var oids = JSON.parse(req.query.oids);
                var found = oids.indexOf(doc._id) >= 0;
        }
        
        return found;
}

json2.js was taken from Crockford website.

Reply via email to