hello,
i'm using elasticsearch_DSL for python and i tried to create a customized query using variable fields :
lista =[ ]
filter = {'name': 'amx', 'type':'ofs'}
for key,value in filter.items():
lista.append(Q('match',"{}={}".format(key,value))
the interpreter return this error :
Q() takes from 0 to 1 positional arguments but 3 were given.
my problem how can i pass a variable name field to Q()
any help please ?