diff --git a/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java b/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java index 4f29abc82b5..bdd95e19a16 100644 --- a/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java +++ b/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java @@ -220,7 +220,7 @@ public final class SuggestUtils { suggestion.maxInspections(parser.intValue()); } else if ("max_term_freq".equals(fieldName) || "maxTermFreq".equals(fieldName)) { suggestion.maxTermFreq(parser.floatValue()); - } else if ("prefix_length".equals(fieldName) || "prefixLength".equals(fieldName)) { + } else if ("prefix_len".equals(fieldName) || "prefixLen".equals(fieldName)) { suggestion.prefixLength(parser.intValue()); } else if ("min_word_len".equals(fieldName) || "minWordLen".equals(fieldName)) { suggestion.minQueryLength(parser.intValue()); diff --git a/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java b/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java index 2e97bfc9c64..843d37f172e 100644 --- a/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java +++ b/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestionBuilder.java @@ -556,7 +556,7 @@ public final class PhraseSuggestionBuilder extends SuggestionBuilder