Use elasticsearch-dsl
Basic usage:
from arkindex.project.elastic import ESAct, ESEntity
for result in ESEntity.search().query('match', name='Jean').execute():
print(result.meta.id, result.name)
for result in ESAct.search().query('match', transcriptions__text='gratia').execute():
print(result.meta.id)
Edited by Erwan Rouchet