For performance reasons, limit search results to 1k nodes (or maybe just make the limit configurable)