Skip to content

Use elasticsearch-dsl

Erwan Rouchet requested to merge elasticsearch-dsl into master

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

Merge request reports

Loading