Update to allow searching in given document only.