added doc paramter to query
Merge pull request #13 from ajstanley/EMiC-152

added doc parameter to query