From b9cc99d3616303b4e71620ef562700c9373ec71e Mon Sep 17 00:00:00 2001 From: David Woods Date: Wed, 16 Oct 2019 16:13:26 -0400 Subject: [PATCH] Add a note to query_string docs around spaces in field names. (#47326) --- docs/reference/query-dsl/query-string-syntax.asciidoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/reference/query-dsl/query-string-syntax.asciidoc b/docs/reference/query-dsl/query-string-syntax.asciidoc index 28bf92112d586..2121d477f27a6 100644 --- a/docs/reference/query-dsl/query-string-syntax.asciidoc +++ b/docs/reference/query-dsl/query-string-syntax.asciidoc @@ -33,6 +33,11 @@ search terms, but it is possible to specify other fields in the query syntax: author:"John Smith" +* where the `first name` field contains `Alice` (note how we need to escape + the space with a backslash) + + first\ name:Alice + * where any of the fields `book.title`, `book.content` or `book.date` contains `quick` or `brown` (note how we need to escape the `*` with a backslash):