select * from table where t_id in (1,2,3,4)
对应es查询语句
!!!注意,是terms !!! 不是term
GET /index/type/_search
{
"query": {
"terms": { "state": [ 1,2,3,4 ] }
}
}
select * from table where t_id in (1,2,3,4)
对应es查询语句
!!!注意,是terms !!! 不是term
GET /index/type/_search
{
"query": {
"terms": { "state": [ 1,2,3,4 ] }
}
}