curl -XPOST 'localhost:9200/indexzp/zp/_search?pretty' -d '
{
"query": { "match": { "address": "中" } }
}'
curl 'http://localhost:9200/zp/_analyze?analyzer=ik&pretty=true' -d '
{
"text":"中华人民共和国国歌"
}'
curl -XPOST http://localhost:9200/indexzp/_search?pretty=true -d'
{
"query" : {
"query_string" : {
"default_field" : "name",
"query" : "中华人"
}
}
}'
curl -XPOST http://localhost:9200/indexzp/_search?pretty=true -d'
{"query" : { "term" : { "name" : "中" }}}'
curl -XPUT 'localhost:9200/zp'
curl -XPOST 'localhost:9200/indexzp/_search?pretty' -d '
{
"query": { "match": { "name": "中华" } }
}'
curl -XPUT 'localhost:9200/indexzp/zp/3' -d '
{
"address": "中华人"
}'