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/search/search-synonyms.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Each rule is delimited by the new line character (`\n`). You can define up to 5,
76
76
77
77
Query parsers automatically lower-case any upper or mixed case terms. To preserve special characters in the string, such as a comma or dash, add the appropriate escape characters when creating the synonym map.
78
78
79
-
####Equivalency rules
79
+
### Equivalency rules
80
80
81
81
Rules for equivalent terms are comma-delimited within the same rule. In the first example, a query on `USA` expands to `USA` OR `"United States"` OR `"United States of America"`. Notice that if you want to match on a phrase, the query itself must be a quote-enclosed phrase query.
82
82
@@ -92,7 +92,7 @@ In the equivalence case, a query for `dog` expands the query to also include `pu
92
92
}
93
93
```
94
94
95
-
####Explicit mapping
95
+
### Explicit mapping
96
96
97
97
Rules for an explicit mapping are denoted by an arrow `=>`. When specified, a term sequence of a search query that matches the left-hand side of `=>` is replaced with the alternatives on the right-hand side at query time.
98
98
@@ -107,7 +107,7 @@ In the explicit case, a query for `Washington`, `Wash.` or `WA` is rewritten as
107
107
}
108
108
```
109
109
110
-
####Escaping special characters
110
+
### Escaping special characters
111
111
112
112
Synonyms are analyzed during query processing just like any other query term, which means that rules for reserved and special characters apply to the terms in your synonym map. The list of characters that requires escaping varies between the simple syntax and full syntax:
113
113
@@ -134,9 +134,9 @@ Since the backslash is itself a special character in other languages like JSON a
134
134
}
135
135
```
136
136
137
-
## Upload and manage synonym maps
137
+
## Manage synonym maps
138
138
139
-
You can create or update a synonym map without disrupting query and indexing workloads. A synonym map is a top-level resource, similar to indexes and indexers. However, once you add a synonym map to a field definition in an index, if you then delete a synonym map, any query that includes the fields in question fail with a 404 error.
139
+
You can update a synonym map without disrupting query and indexing workloads. However, once you add a synonym map to a field, if you then delete a synonym map, any query that includes the fields in question fail with a 404 error.
140
140
141
141
Creating, updating, and deleting a synonym map is always a whole-document operation. You can't update or delete parts of the synonym map incrementally. Updating even a single rule requires a reload.
0 commit comments