CDRIVER-424 filter out non-matching nodes before those that are far