sql语句示例:
select * from table where t_id in (1,2,3,4)
php代码示例:
$search_query = [ "bool" => [ "must" => [ ["term" => ["type" => 'thread']], ["range" => ["id" => ['lte' => $top_tid]]]//gte ], // in /* "filter" => [ "terms" => ["fid" => [43, 44]], ], */ // not in "must_not" => [ "terms" => ["fid" => [44]], ], ], ];