Query: When parent doc is found stop iterating over segments and continue with the next top matching child doc

The parent doc has been found and there is no need to check subsequent segments.

Relates to #1843