Made filterQueryResults run filterDoc in parallel, which avoids smashing the stack / event loop