Helper function to look up ES doc ID.

Created a helper function to simplify looking up the document ID of
an ElasticSearch document by querying for a field/value match.