in parquet_flask/io_logic/metadata_tbl_es.py [0:0]
def get_by_uuid(self, uuid):
result = self.__es.query({
'query': {
'bool': {
'must': [
{
'term': {'uuid': uuid}
}
]
}
}
}, CDMSConstants.entry_file_records_index)
if result is None:
return None
result = result['hits']['hits']
if len(result) < 1:
return None
return result[0]['_source']