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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -