Skip to content

Commit f90051e

Browse files
committed
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
1 parent a1cc683 commit f90051e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference/query-dsl/query-string-syntax.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ The reserved characters are: `+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /`
279279
Failing to escape these special characters correctly could lead to a syntax
280280
error which prevents your query from running.
281281

282+
NOTE: `<` and `>` can't be escaped at all. The only way to prevent them from
283+
attempting to create a range query is to remove them from the query string
284+
entirely.
285+
282286
.Watch this space
283287
****
284288
A space may also be a reserved character. For instance, if you have a

0 commit comments

Comments
 (0)