SQL-To-ElasticSearch icon indicating copy to clipboard operation
SQL-To-ElasticSearch copied to clipboard

'or' and 'and' operators work same

Open npc109 opened this issue 3 years ago • 0 comments

input select name from users where name='nick' and name='zxc' output POST users/_search { "query": { "bool": { "must": [ { "match": { "name": "nick" } }, { "match": { "name": "zxc" } } ] } }, "_source": [ "name" ] }

input select name from users where name='nick' or name='zxc1' output POST users/_search { "query": { "bool": { "must": [ { "match": { "name": "nick" } }, { "match": { "name": "zxc1" } } ] } }, "_source": [ "name" ] }

npc109 avatar Jun 23 '22 09:06 npc109