Skip to content

Commit 73f5fef

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

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
@@ -30,6 +30,11 @@ You can specify fields to search in the query syntax:
3030

3131
author:"John Smith"
3232

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

0 commit comments

Comments
 (0)