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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -