My question is simple, I can't use @ in the search query. Finally, I found that I can escape the special characters using the backslash.
GET index/_search
{
"size": 20,
"query": {
"query_string": {
"query": "\@as",
"analyzer": "keyword"
}
}
}
But when I try to do that I got the following error Unrecognized character escape '@' (code 64)\n at
. And when I try without @ symbol i got the results without @ symbol like
- As missed as ever
- As. GUI
- As if And so on. can any one suggest how can I achieve the previous query can be executed as per my expectation?
I am using
- Elasticsearch 2.4.1
- Ubuntu 14.04
- Kibana 4.6.1