How use IN equivalent operator in ElasticSearch?

SELECT * FROM TABLE WHERE id IN (1, 2, 3);

The equivalent Elasticsearch 1.x filter would be:

{ "query" : { "filtered" : { "filter" : { "terms" : { "id" : [1, 2, 3] } } } } }

The equivalent Elasticsearch 2.x+ filter would be:

{ "query" : { "bool" : { "filter" : { "terms" : { "id" : [1, 2, 3] } } } } }