Java API - is FilterBuilders removed on es5.2?

If yes, what's the alternative ?

Yes. Filters and Queries were merged in 2.0 (see https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_query_dsl_changes.html#_queries_and_filters_merged) so you can now use QueryBuilders instead. Whether your query query runs as a query (calculates scores) or a filter (simple match or no match) is determined based on whether the context in which the query is defined is a query context or a filter context as the link explains.

1 Like

Thanks :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.