Class SearchSuggester


public final class SearchSuggester extends Object
Defines how the Suggest API should apply to a group of fields in the index.
  • Constructor Details

    • SearchSuggester

      public SearchSuggester(String name, List<String> sourceFields)
      Creates an instance of SearchSuggester class.
      name - the name value to set.
      sourceFields - the sourceFields value to set.
  • Method Details

    • getName

      public String getName()
      Get the name property: The name of the suggester.
      the name value.
    • getSearchMode

      public String getSearchMode()
      Get the searchMode property: A value indicating the capabilities of the suggester.
      the searchMode value.
    • getSourceFields

      public List<String> getSourceFields()
      Get the sourceFields property: The list of field names to which the suggester applies. Each field must be searchable.
      the sourceFields value.