inFileter Elastic Search 2.0 migration

Hi All,

I am migrating from ES version 1.4.2 to 2.0.

Since the inFilter are no more supported.
Please suggest alternative.


I'm assuming you are talking about FilterBuilders.inFilter()? That was just an alias for a TermsFilterBuilder, which after Filters and Queries are merged would now be a simple TermsQueryBuilder. You would get that with one of the QueryBuilders.termsQuery() methods I think.