summaryrefslogtreecommitdiff
path: root/core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java
diff options
context:
space:
mode:
authorChristoph Büscher <christoph@elastic.co>2016-04-15 18:18:15 +0200
committerChristoph Büscher <christoph@elastic.co>2016-04-15 20:51:05 +0200
commitf7e79f4981ddeb1d14e0aaa0417b3ed378d8e298 (patch)
treeb163207861ca3360ae8ae8dddba4f7c728fd3a52 /core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java
parent4e77adf38e3bdec774cffee351e3c31f8b9cf25a (diff)
Pass down parse context instead of just parser in completion context suggester.
Diffstat (limited to 'core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java')
-rw-r--r--core/src/main/java/org/elasticsearch/search/suggest/completion/context/CategoryContextMapping.java5
1 files changed, 3 insertions, 2 deletions
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 1931c4a9e0..150b7bf4f9 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
@@ -27,6 +27,7 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentParser.Token;
import org.elasticsearch.index.mapper.ParseContext;
import org.elasticsearch.index.mapper.ParseContext.Document;
+import org.elasticsearch.index.query.QueryParseContext;
import java.io.IOException;
import java.util.ArrayList;
@@ -139,8 +140,8 @@ public class CategoryContextMapping extends ContextMapping<CategoryQueryContext>
}
@Override
- protected CategoryQueryContext fromXContent(XContentParser parser) throws IOException {
- return CategoryQueryContext.fromXContent(parser);
+ protected CategoryQueryContext fromXContent(QueryParseContext context) throws IOException {
+ return CategoryQueryContext.fromXContent(context);
}
/**