Skip to content

Commit dc19259

Browse files
committed
rephrasing in the index section
1 parent bcaf457 commit dc19259

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/search/query-simple-syntax.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ Field grouping is similar but scopes the grouping to a single field. For example
4141

4242
In the simple syntax, search operators include these characters: `+ | " ( ) ' \`
4343

44-
If a search operator is part of the search text, escape the character by prefixing it with a single backslash (`\`). For example, `search=luxury\+hotel` will match on the term *luxury+hotel*. To make things simple for the more typical cases, there are two exceptions to this rule where escaping is not needed:
44+
If any of these characters are part of a token in the index, escape it by prefixing it with a single backslash (`\`). For example, suppose you used a custom analyzer for whole term tokenization, and your index contains the string "Luxury+Hotel". To get a match on this token, add an escape character: `search=luxury\+hotel`.
45+
46+
To make things simple for the more typical cases, there are two exceptions to this rule where escaping is not needed:
4547

4648
+ The NOT operator `-` only needs to be escaped if it's the first character after a whitespace. If the `-` appears in the middle (for example, in `3352CDD0-EF30-4A2E-A512-3B30AF40F3FD`), you can skip escaping.
4749

0 commit comments

Comments
 (0)