Class SearchSuggester

java.lang.Object
com.azure.search.documents.indexes.models.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.
      Parameters:
      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.
      Returns:
      the name value.
    • getSearchMode

      public String getSearchMode()
      Get the searchMode property: A value indicating the capabilities of the suggester.
      Returns:
      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.
      Returns:
      the sourceFields value.