ソースを参照

Docs: Add a note about `<` and `>` in query_string

`<` and `>` can't be escaped at all in `query_string`. If we're not
going to fix that we should at least document it.

Relates to #21703
Nik Everett 8 年 前
コミット
f90051e6e0
1 ファイル変更4 行追加0 行削除
  1. 4 0
      docs/reference/query-dsl/query-string-syntax.asciidoc

+ 4 - 0
docs/reference/query-dsl/query-string-syntax.asciidoc

@@ -279,6 +279,10 @@ The reserved characters are:  `+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /`
 Failing to escape these special characters correctly could lead to a syntax
 error which prevents your query from running.
 
+NOTE: `<` and `>` can't be escaped at all. The only way to prevent them from
+attempting to create a range query is to remove them from the query string
+entirely.
+
 .Watch this space
 ****
 A space may also be a reserved character.  For instance, if you have a