Doc query and doc find working for internal nodes