I am having trouble writing an Elasticsearch request.My request is below
{ "query": { "query_string": { "default_field": "content", "query": "@lin1" } }, "from": 0, "size": 1000, "sort": [ { "time": "desc" } ] }
And I use query_stringhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.htmlBut the character @cannot match.This will produce the following result: lin1orใlin1ใ
query_string
@
lin1
ใlin1ใ
So how do I write a query Elasticsearchto match @lin1?
Elasticsearch
@lin1
. , , "@" . "@" . , "@" , query_string :
"query_string": { "default_field": "content", "query": "@lin1", "analyzer": "whitespace" }