NoteDeep
ES CURL查询:
curl --user user:password -H 'Content-Type: application/json' -XPOST 'localhost:9200/developer_app_v12/_search?pretty' -d '
{
"query": {
"bool": {
"must": [
{
"term": {
"developerId": 1
}
}
]
}
}
}'

curl -H 'Content-Type: application/json' -XPOST 'localhost:9200/article/_search?pretty' -d '
{
"query": { "term": {"notehubId":20} }
}'

ES CURL删除:

curl -X POST "localhost:9200/article/_delete_by_query" -H 'Content-Type: application/json' -d'
{
"query": {
"term": {
"userId": 377
}
}
}'


curl -H 'Content-Type: application/json' -XPOST 'localhost:9200/article/_search?pretty' -d '
{
"query": { "match": {"content":"777"} }
}'

看索引

curl 172.20.4.99:9200/_cat/indices?v


curl -H 'Content-Type: application/json' -XPOST '172.20.4.99:9200/app_v1/_search?pretty' -d '
{
"query": { "term": {"has_anti_addiction_pics":false} }
}'

bool查询

curl -H 'Content-Type: application/json' -XPOST '172.26.192.128:30088/developer_user_v1/_search?pretty' -d '
{
"query": {
"bool": {
"must": [
{
"term": {
"userId": 11564922
}
},
{
"term": {
"developerId": "24930"
}
}
]
}
}
}'






评论列表

    ES CURL删除:
    看索引
    bool查询