Package com.azure.maps.search.models
Class FuzzySearchOptions
java.lang.Object
com.azure.maps.search.models.BaseSearchOptions<T>
com.azure.maps.search.models.BaseSearchPointOfInterestOptions<FuzzySearchOptions>
com.azure.maps.search.models.FuzzySearchOptions
Class holding parameters for a fuzzy search.
-
Constructor Summary
ConstructorsConstructorDescriptionFuzzySearchOptions
(String query) Builds fuzzy search options with only the query string.FuzzySearchOptions
(String query, com.azure.core.models.GeoPosition coordinates) Builds fuzzy search options with query string and coordinates.FuzzySearchOptions
(String query, List<String> countryFilter) Builds fuzzy search options with query string and country filter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the entity type.Returns the extended postal codes.Returns the index filters used in the search.Returns the maximum fuzzy level.Returns the minimum fuzzy level.getQuery()
Returns the query string.Returns whether this is a typeahead search.setEntityType
(GeographicEntityType entityType) Sets the entity type.setExtendedPostalCodesFor
(List<SearchIndexes> extendedPostalCodesFor) Sets the extended postal codes.setIndexFilter
(List<SearchIndexes> indexFilter) Sets the index filters used in the search.setIsTypeAhead
(Boolean isTypeAhead) Sets whether this is a typeahead search.setMaxFuzzyLevel
(Integer maxFuzzyLevel) Sets the maximum fuzzy level.setMinFuzzyLevel
(Integer minFuzzyLevel) Sets the minimum fuzzy level.Sets the query string.Methods inherited from class com.azure.maps.search.models.BaseSearchPointOfInterestOptions
getBrandFilter, getCategoryFilter, getCoordinates, getElectricVehicleConnectorFilter, getOperatingHours, setBrandFilter, setCategoryFilter, setCoordinates, setElectricVehicleConnectorFilter, setOperatingHours
Methods inherited from class com.azure.maps.search.models.BaseSearchOptions
getBoundingBox, getCountryFilter, getLanguage, getLocalizedMapView, getRadiusInMeters, getSkip, getTop, setCountryFilter, setGeoBoundingBox, setLanguage, setLocalizedMapView, setRadiusInMeters, setSkip, setTop
-
Constructor Details
-
FuzzySearchOptions
Builds fuzzy search options with only the query string.- Parameters:
query
- the query string used in the search.
-
FuzzySearchOptions
Builds fuzzy search options with query string and coordinates.- Parameters:
query
- The query to be used to search for points of interest.coordinates
- TheGeoPosition
coordinates to be searched.
-
FuzzySearchOptions
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
Returns whether this is a typeahead search.- Returns:
- whether this is a typeahead search.
-
getExtendedPostalCodesFor
Returns the extended postal codes.- Returns:
- the extended postal codes used for the search.
-
getMinFuzzyLevel
Returns the minimum fuzzy level.- Returns:
- the minimum fuzzy level.
-
getMaxFuzzyLevel
Returns the maximum fuzzy level.- Returns:
- the maximum fuzzy level.
-
getIndexFilter
Returns the index filters used in the search.- Returns:
- the index filters used in the search.
-
getEntityType
Returns the entity type.- Returns:
- the entity type.
-
getQuery
Returns the query string.- Returns:
- the query string.
-
setIsTypeAhead
Sets whether this is a typeahead search.- Parameters:
isTypeAhead
- the extended postal codes.- Returns:
- a reference to this
FuzzySearchOptions
-
setExtendedPostalCodesFor
Sets the extended postal codes.- Parameters:
extendedPostalCodesFor
- the extended postal codes used for the search.- Returns:
- a reference to this
FuzzySearchOptions
-
setMinFuzzyLevel
Sets the minimum fuzzy level.- Parameters:
minFuzzyLevel
- the minimum fuzzy level.- Returns:
- a reference to this
FuzzySearchOptions
-
setMaxFuzzyLevel
Sets the maximum fuzzy level.- Parameters:
maxFuzzyLevel
- the maximum fuzzy level.- Returns:
- a reference to this
FuzzySearchOptions
-
setIndexFilter
Sets the index filters used in the search.- Parameters:
indexFilter
- the index filters used in the search.- Returns:
- a reference to this
FuzzySearchOptions
-
setEntityType
Sets the entity type.- Parameters:
entityType
- the entity type.- Returns:
- a reference to this
FuzzySearchOptions
-
setQuery
Sets the query string.- Parameters:
query
- the query string.- Returns:
- a reference to this
FuzzySearchOptions
-