ElasticSearch学习记录 - 命令示例
GET /searchfilmcomments/searchfilmcomments/_search { "query": { "match_all": {} } } GET /searchfilmcomments/searchfilmcomments/3097 GET /searchfilmcomments/searchfilmcomments/_search { "query": { "match_phrase": { "ownerCommentId": "2050" } } } GET /searchfilmcomments/searchfilmcomments/_search { "query": { "query_string" : { "query" : "ownerCommentId:1334 AND commentTime:[ * TO * ] AND objectType:1 AND filmId:100021" } } } GET /searchfilmcomments/searchfilmcomments/_search { "query": { "query_string" : { "query" : "commentOrReply:1 AND filmId:100021 AND objectType:1" } } } GET /searchfilmcomments/searchfilmcomments/_search { "size": 0, "query": { "query_string" : { "query" : "commentOrReply:1 AND filmId:100021 AND objectType:1" } }, "aggs": { "sum_replyNums": { "sum": { "field": "replyNum" } } } } GET /searchlongfilmcomments/searchlongfilmcomments/_search { "query": { "match_all": {} } } DELETE /searchlongfilmcomments/searchlongfilmcomments/6 GET /searcharticlelike/searcharticlelike/_search { "query": { "match_all": {} } } GET /searchlongfilmcomments/searchlongfilmcomments/_search { "query": { "match_all": {} } } GET /searchlongfilmcomments/searchlongfilmcomments/_search { "query": { "query_string" : { "query" : "filmName:*大白鲨*" } } } GET /searchlongfilmcomments/searchlongfilmcomments/_search { "query": { "query_string" : { "query" : "commentTime:[ 2019-07-23T10:51:14Z TO 2019-07-24T10:51:17Z ]" } } } POST /searchlongfilmcomments/searchlongfilmcomments/_delete_by_query?refresh&slices=5&pretty { "query": { "match_all": {} } } POST /searchlongfilmcomments/searchlongfilmcomments/_delete_by_query?conflicts=proceed { "query": { "match_all": {} } }