Class SuggestingErrorOnUnknown

org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ErrorOnUnknown

public class SuggestingErrorOnUnknown extends implements org.elasticsearch.common.xcontent.ErrorOnUnknown
  • Field Summary

    Fields inherited from interface org.elasticsearch.common.xcontent.ErrorOnUnknown

    IMPLEMENTATION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     parserName,  unknownField, <> candidates)
     
    int
     
    static
     unknownField, <> candidates)
    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.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • SuggestingErrorOnUnknown

      public SuggestingErrorOnUnknown()
  • Method Details

    • errorMessage

      public  errorMessage( parserName,  unknownField, <> candidates)
      Specified by:
      errorMessage in interface org.elasticsearch.common.xcontent.ErrorOnUnknown
    • priority

      public int priority()
      Specified by:
      priority in interface org.elasticsearch.common.xcontent.ErrorOnUnknown
    • suggest

      public static  suggest( unknownField, <> candidates)
      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.