diff options
author | Christoph Büscher <christoph@elastic.co> | 2017-02-20 15:45:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 15:45:10 +0100 |
commit | ea7deace5dd3c293dadb508979511c28d785588d (patch) | |
tree | 38f93d28c765169014cb6e458edd4bf00d157e3d /core/src/main/java/org/elasticsearch/search/suggest/completion | |
parent | ea9d51114c6da056fb3b1bae6a6ece4d29edf922 (diff) |
Adding fromXContent to Suggest and Suggestion class (#23226)
A follow up to #23202, this adds parsing from xContent and tests to the four Suggestion implementations
and the top level suggest element to be used later when parsing the entire SearchResponse.
Diffstat (limited to 'core/src/main/java/org/elasticsearch/search/suggest/completion')
-rw-r--r-- | core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java b/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java index 51b44a300d..ed45104d99 100644 --- a/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java +++ b/core/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java @@ -64,7 +64,7 @@ import static org.elasticsearch.search.suggest.Suggest.COMPARATOR; */ public final class CompletionSuggestion extends Suggest.Suggestion<CompletionSuggestion.Entry> { - private static final String NAME = "completion"; + public static final String NAME = "completion"; public static final int TYPE = 4; |