1、查询gather-005中 NAME='Lihua'
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"query":{
"match":{
"NAME":"Lihua"
}
}
}'
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"size":10,
"query":{
"term":{
"NAME.keyword":"Lihua"
}
}
}'
2、查询 gather-010中前两个
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"size":2
}
3、查询gather-000中area_type为0的
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"query":{
"match":{
"NAME":"Lihua"
}
}
}'
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"size":10,
"query":{
"term":{
"NAME.keyword":"Lihua"
}
}
}'
2、查询 gather-010中前两个
curl -XGET 'localhost:9200/gather-005/_search?pretty' -H 'Content-Type:application/json' -d'
{
"size":2
}
3、查询gather-000中area_type为0的