There is no fixed limit. Elasticsearch will accept request bodies up to several MB in size by default. As seem in this thread, large terms queries are likely to get slow as the list of terms grows though. You will need to benchmark to see exactly how many you can handle with acceptable query latencies.