I am new to Elasticsearch. I donβt think I fully understand the concept of queries and filters. In my case, I just want to use filters, because I do not want to use a function in advance, such as scoring.
How to convert the following SQL statement to an elasticsearch query?
SELECT * FROM advertiser WHERE company like '%com%' AND sales_rep IN (1,2)
What I still have:
curl -XGET 'localhost:9200/advertisers/advertiser/_search?pretty=true' -d ' { "query" : { "bool" : { "must" : { "wildcard" : { "company" : "*com*" } } } }, "size":1000000 }'
How to add OR filters to the sales_rep field?
thanks
source share