From 8142ac4d5e92f9ce2341b79c0c3c8491739123ee 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 887e8842cb11a..0f766f92dff64 100644 --- a/docs/reference/query-dsl/query-string-syntax.asciidoc +++ b/docs/reference/query-dsl/query-string-syntax.asciidoc @@ -30,6 +30,11 @@ You can specify fields to search 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):