Skip to content

Commit 6b229bb

Browse files
birnamjtibshirani
authored andcommitted
Add a note to query_string docs around spaces in field names. (#47326)
1 parent d6506af commit 6b229bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/query-dsl/query-string-syntax.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ search terms, but it is possible to specify other fields in the query syntax:
3131

3232
author:"John Smith"
3333

34+
* where the `first name` field contains `Alice` (note how we need to escape
35+
the space with a backslash)
36+
37+
first\ name:Alice
38+
3439
* where any of the fields `book.title`, `book.content` or `book.date` contains
3540
`quick` or `brown` (note how we need to escape the `*` with a backslash):
3641

0 commit comments

Comments
 (0)