Parent / child queries should work with non-default similarities

Closes #4977