Why I can't search for UUID in elasticsearch database using filters -
i have django
app use elasticsearch
database, use elasticsearch-dsl
, filters , queries works. have problem 1 parameter, it's uuid. got 0 results request in shell
:
s = search(index='my_index_name').filter('term', uuid='0deaa49b-15b6-4c10-acb7-d98df800e0df') response=s.execute() response
i use django-rest-elasticsearch
, have same issue, got correct rest
result filters, not uuid request. works, need use filtering.
q = q("multi_match", query="0deaa49b-15b6-4c10-acb7-d98df800e0df", fields=["uuid",]) response=s.execute() response
maybe know hot use uuid in rest
, because uuid=0deaa49b-15b6-4c10-acb7-d98df800e0df
don't work.
Comments
Post a Comment