From d37e01152658a111853de40809fb8ea94b2a0a2e Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Tue, 3 Nov 2015 20:01:47 -0500 Subject: add query context builders --- .../search/suggest/completion/context/CategoryContextMapping.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java') diff --git a/core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java b/core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java index 62fec54a33..23c9ca730b 100644 --- a/core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java +++ b/core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java @@ -153,11 +153,11 @@ public class CategoryContextMapping extends ContextMapping { Token token = parser.nextToken(); if (token == Token.START_OBJECT || token == Token.VALUE_STRING) { CategoryQueryContext parse = CategoryQueryContext.parse(parser); - queryContexts.add(new QueryContext(parse.context.toString(), parse.boost, parse.isPrefix)); + queryContexts.add(new QueryContext(parse.getCategory().toString(), parse.getBoost(), parse.isPrefix())); } else if (token == Token.START_ARRAY) { while (parser.nextToken() != Token.END_ARRAY) { CategoryQueryContext parse = CategoryQueryContext.parse(parser); - queryContexts.add(new QueryContext(parse.context.toString(), parse.boost, parse.isPrefix)); + queryContexts.add(new QueryContext(parse.getCategory().toString(), parse.getBoost(), parse.isPrefix())); } } return queryContexts; -- cgit v1.2.3