Răsfoiți Sursa

Add a note to query_string docs around spaces in field names. (#47326)

David Woods 6 ani în urmă
părinte
comite
8142ac4d5e
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      docs/reference/query-dsl/query-string-syntax.asciidoc

+ 5 - 0
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):