Class SuggestingErrorOnUnknown
java.lang.Object
org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ErrorOnUnknown
public class SuggestingErrorOnUnknown
extends Object
implements org.elasticsearch.common.xcontent.ErrorOnUnknown
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ErrorOnUnknown
IMPLEMENTATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionerrorMessage(String parserName, String unknownField, Iterable<String> candidates)
int
priority()
static String
Builds suggestions for an unknown field, returning an empty string if there aren't any suggestions or " did you mean " and then the list of suggestions.
-
Constructor Details
-
SuggestingErrorOnUnknown
public SuggestingErrorOnUnknown()
-
-
Method Details
-
errorMessage
- Specified by:
errorMessage
in interfaceorg.elasticsearch.common.xcontent.ErrorOnUnknown
-
priority
public int priority()- Specified by:
priority
in interfaceorg.elasticsearch.common.xcontent.ErrorOnUnknown
-
suggest
Builds suggestions for an unknown field, returning an empty string if there aren't any suggestions or " did you mean " and then the list of suggestions.
-