You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-best-practices-for-search.md
+9-137Lines changed: 9 additions & 137 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
title: Search efficiently using the Azure Maps Search Service | Microsoft Azure Maps
3
-
description: Learn how to apply best practices for the Search service using Microsoft Azure Maps
3
+
description: Learn how to apply best practices for the Search service using Microsoft Azure Maps
4
+
4
5
author: walsehgal
5
6
ms.author: v-musehg
6
7
ms.date: 01/23/2020
@@ -36,7 +37,7 @@ See [geocoding coverage](https://docs.microsoft.com/azure/azure-maps/geocoding-c
36
37
37
38
### Limit search results
38
39
39
-
Azure Maps Search API can help you limit search results appropriately, so you can display relevant data to your users.
40
+
Azure Maps Search API can help you limit search results appropriately, so you can display relevant data to your users.
40
41
41
42
> [!Note]
42
43
> Not all of the search APIs supported parameters are listed below
@@ -54,9 +55,9 @@ See [geocoding coverage](https://docs.microsoft.com/azure/azure-maps/geocoding-c
54
55
55
56
**Fuzzy search parameters**
56
57
57
-
Azure Maps [Fuzzy Search API](https://docs.microsoft.com/rest/api/maps/search/getsearchfuzzy) is the recommended service to use when you don't know what your user inputs are for a search query. The API combines Point of Interest (POI) search and geocoding into a canonical *single-line search*.
58
+
Azure Maps [Fuzzy Search API](https://docs.microsoft.com/rest/api/maps/search/getsearchfuzzy) is the recommended service to use when you don't know what your user inputs are for a search query. The API combines Point of Interest (POI) search and geocoding into a canonical *single-line search*.
58
59
59
-
1. The `minFuzzyLevel` and `maxFuzzyLevel` help return relevant matches even when query parameters do not match exactly to the wanted information. To gain performance and reduce unusual results, default search queries to `minFuzzyLevel=1` and `maxFuzzyLevel=2` . Take an example of a search term "restrant", it is matched to "restaurant" when the `maxFuzzyLevel` is set to be 2. The default fuzzy levels can be overridden as needed.
60
+
1. The `minFuzzyLevel` and `maxFuzzyLevel` help return relevant matches even when query parameters do not match exactly to the wanted information. To gain performance and reduce unusual results, default search queries to `minFuzzyLevel=1` and `maxFuzzyLevel=2` . Take an example of a search term "restrant", it is matched to "restaurant" when the `maxFuzzyLevel` is set to be 2. The default fuzzy levels can be overridden as needed.
60
61
61
62
2. You can also prioritize the exact set of result types to be returned by using the `idxSet` parameter. For this purpose, you can submit a comma-separated list of indexes; the item order does not matter. The following indexes are supported:
62
63
@@ -76,7 +77,7 @@ See [geocoding coverage](https://docs.microsoft.com/azure/azure-maps/geocoding-c
76
77
77
78
### Reverse geocode and geography entity type filter
78
79
79
-
When doing a reverse geocode search with [Search Address Reverse API](https://docs.microsoft.com/rest/api/maps/search/getsearchaddressreverse), the service has capability to return polygons for the administrative areas.By providing the parameter `entityType` in the request, you can narrow the search for specified geography entity types. The resulting response will contain the geography ID and the entity type matched. If you provide more than one entity, endpoint will return the **smallest entity available**. Returned Geometry ID can be used to get the geometry of that geography via [Get Polygon service](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon).
80
+
When doing a reverse geocode search with [Search Address Reverse API](https://docs.microsoft.com/rest/api/maps/search/getsearchaddressreverse), the service has capability to return polygons for the administrative areas.By providing the parameter `entityType` in the request, you can narrow the search for specified geography entity types. The resulting response will contain the geography ID and the entity type matched. If you provide more than one entity, endpoint will return the **smallest entity available**. Returned Geometry ID can be used to get the geometry of that geography via [Get Polygon service](https://docs.microsoft.com/rest/api/maps/search/getsearchpolygon).
0 commit comments