TOOL » ELASTICSEARCH
Query
Reserved characters
txt
+ - = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /
To query those characters, prepend with a backslash, or make the expression a single word by surrounding it with double quotes.
Curl
shell
curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d "${JSON}"
json
{
"query": {
"terms": {
"user": ["Yutsuten", "Taro"]
}
}
}