[DOCS] Correct snippet in query string syntax
@@ -276,11 +276,9 @@ query itself (and not as operators), then you should escape them with
a leading backslash. For instance, to search for `(1+1)=2`, you would
need to write your query as `\(1\+1\)\=2`. When using JSON for the request body, two preceding backslashes (`\\`) are required; the backslash is a reserved escaping character in JSON strings.
-[source,console]
+[source,js]
----
GET /twitter/_search
-Content-Type: application/json
-
{
"query" : {
"query_string" : {
@@ -290,6 +288,7 @@ Content-Type: application/json
}
}
----
+// CONSOLE
// TEST[setup:twitter]
The reserved characters are: `+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /`
