TermsLookupQueryBuilder slower in Elasticsearch 2.x than 1.x


I have been using TermsLookupFilterBuilder (https://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-terms-filter.html) without caching in ES 1.4 which seems be be faster than TermsLookupQueryBuilder(https://www.elastic.co/guide/en/elasticsearch/reference/2.4/query-dsl-terms-query.html) in ES 2.4, which is slower than 10 times for my sample query, which aggregates to few minutes for my original query. The query were tested for both Java API and also normal ES query.

Is this expected ? Is there any other way for optimization?

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