Query Dsl Terms
select * from orders where id = "1" or id = "2"curl -XPOST 'localhost:9200/orders/orders/_search?pretty=true' \ -H 'content-type:application/json' \ -d '{ "query" : { "terms": { "id": [ "1", "2"] } } }'curl 'localhost:9200/orders/orders/_search?pretty=true' \ -H 'content-type:application/json' \ -d '{ "query" : { "terms": { "id": { "index" : "lateorders", "type" : "lateorders", "id" : "2018-01-01", "path" : "ids" } } } }'
Last updated