What's the syntax for filtering out records with certain phrases in ElasticSearch -
the json looks this
{ "company": { "type": "sme", "name": "taylor corps" }, "contact": { "tel": "5334234234", "name": "jane doe" }, "affiliates": { "org": "taylor corps" } }
image want filter
out people has "taylor" in company.name
or affiliates.org
.
i tried multi_field
in bool filter
doesn't seem working in filter.
any advice?
thank you!
use following query:
{ "query": { "query_string": { "fields": [ "company.name" , "affiliates.org" ], "query": "taylor" } } }
Comments
Post a Comment