stripDoc before resource-handler search