I face the problem about writing Elasticsearch query.
My query is like below
{
"query": {
"query_string": {
"default_field": "content",
"query": "@lin1"
}
},
"from": 0,
"size": 1000,
"sort": [
{
"time": "desc"
}
]
}
And I am using query_string
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
But the @
character can not match.
It will come out this kind of result: lin1
or 「lin1」
So how should I write the Elasticsearch
query to match @lin1
?
@lin1
– Meteor