From 2e0b548b06363d0a2f2edbd47681c6e7af6e8ca6 Mon Sep 17 00:00:00 2001 From: javanna Date: Fri, 14 Aug 2015 10:45:41 +0200 Subject: [PATCH] Java api: remove support for lookup cache in TermsLooukpBuilder TermsQueryParser doesn't support the cache field anymore, so if it gets set through java api, the subsequent parsing of that query will throw error Relates to #12870 --- .../index/query/TermsLookupQueryBuilder.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java index e5daab55640..4bdd0daca3f 100644 --- a/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java @@ -34,7 +34,6 @@ public class TermsLookupQueryBuilder extends QueryBuilder { private String lookupId; private String lookupRouting; private String lookupPath; - private Boolean lookupCache; private String queryName; @@ -87,11 +86,6 @@ public class TermsLookupQueryBuilder extends QueryBuilder { return this; } - public TermsLookupQueryBuilder lookupCache(boolean lookupCache) { - this.lookupCache = lookupCache; - return this; - } - @Override public void doXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(TermsQueryParser.NAME); @@ -105,9 +99,6 @@ public class TermsLookupQueryBuilder extends QueryBuilder { if (lookupRouting != null) { builder.field("routing", lookupRouting); } - if (lookupCache != null) { - builder.field("cache", lookupCache); - } builder.field("path", lookupPath); builder.endObject();