Class FuzzySearchOptions


public final class FuzzySearchOptions extends BaseSearchPointOfInterestOptions<FuzzySearchOptions>
Class holding parameters for a fuzzy search.
  • Constructor Details

    • FuzzySearchOptions

      public FuzzySearchOptions(String query)
      Builds fuzzy search options with only the query string.
      Parameters:
      query - the query string used in the search.
    • FuzzySearchOptions

      public FuzzySearchOptions(String query, com.azure.core.models.GeoPosition coordinates)
      Builds fuzzy search options with query string and coordinates.
      Parameters:
      query - The query to be used to search for points of interest.
      coordinates - The GeoPosition coordinates to be searched.
    • FuzzySearchOptions

      public FuzzySearchOptions(String query, List<String> countryFilter)
      Builds fuzzy search options with query string and country filter.
      Parameters:
      query - The query to be used to search for points of interest.
      countryFilter - A list of country codes - e.g. "US", "GB", "DE", etc.
  • Method Details

    • isTypeAhead

      public Boolean isTypeAhead()
      Returns whether this is a typeahead search.
      Returns:
      whether this is a typeahead search.
    • getExtendedPostalCodesFor

      public List<SearchIndexes> getExtendedPostalCodesFor()
      Returns the extended postal codes.
      Returns:
      the extended postal codes used for the search.
    • getMinFuzzyLevel

      public Integer getMinFuzzyLevel()
      Returns the minimum fuzzy level.
      Returns:
      the minimum fuzzy level.
    • getMaxFuzzyLevel

      public Integer getMaxFuzzyLevel()
      Returns the maximum fuzzy level.
      Returns:
      the maximum fuzzy level.
    • getIndexFilter

      public List<SearchIndexes> getIndexFilter()
      Returns the index filters used in the search.
      Returns:
      the index filters used in the search.
    • getEntityType

      public GeographicEntityType getEntityType()
      Returns the entity type.
      Returns:
      the entity type.
    • getQuery

      public String getQuery()
      Returns the query string.
      Returns:
      the query string.
    • setIsTypeAhead

      public FuzzySearchOptions setIsTypeAhead(Boolean isTypeAhead)
      Sets whether this is a typeahead search.
      Parameters:
      isTypeAhead - the extended postal codes.
      Returns:
      a reference to this FuzzySearchOptions
    • setExtendedPostalCodesFor

      public FuzzySearchOptions setExtendedPostalCodesFor(List<SearchIndexes> extendedPostalCodesFor)
      Sets the extended postal codes.
      Parameters:
      extendedPostalCodesFor - the extended postal codes used for the search.
      Returns:
      a reference to this FuzzySearchOptions
    • setMinFuzzyLevel

      public FuzzySearchOptions setMinFuzzyLevel(Integer minFuzzyLevel)
      Sets the minimum fuzzy level.
      Parameters:
      minFuzzyLevel - the minimum fuzzy level.
      Returns:
      a reference to this FuzzySearchOptions
    • setMaxFuzzyLevel

      public FuzzySearchOptions setMaxFuzzyLevel(Integer maxFuzzyLevel)
      Sets the maximum fuzzy level.
      Parameters:
      maxFuzzyLevel - the maximum fuzzy level.
      Returns:
      a reference to this FuzzySearchOptions
    • setIndexFilter

      public FuzzySearchOptions setIndexFilter(List<SearchIndexes> indexFilter)
      Sets the index filters used in the search.
      Parameters:
      indexFilter - the index filters used in the search.
      Returns:
      a reference to this FuzzySearchOptions
    • setEntityType

      public FuzzySearchOptions setEntityType(GeographicEntityType entityType)
      Sets the entity type.
      Parameters:
      entityType - the entity type.
      Returns:
      a reference to this FuzzySearchOptions
    • setQuery

      public FuzzySearchOptions setQuery(String query)
      Sets the query string.
      Parameters:
      query - the query string.
      Returns:
      a reference to this FuzzySearchOptions