Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'or' and 'and' operators work same #3

Open
npc109 opened this issue Jun 23, 2022 · 0 comments
Open

'or' and 'and' operators work same #3

npc109 opened this issue Jun 23, 2022 · 0 comments

Comments

@npc109
Copy link

npc109 commented Jun 23, 2022

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" ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant