首页 > TAG信息列表 > beauties
冒泡排序(C++)
#include <iostream> using namespace std; int main(void) { int beauties[] = { 2, 1, 4, 6, 8, 5, 9, 7, 5 }; int len = sizeof(beauties) / sizeof(beauties[0]); int test = 0; for (int j = 0; j < len ; j++) { for (intCF--Beauty Pageant--思维
C. Beauty Pageant time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output General Payne has a battalion of n soldiers. The soldiers' beauty contest is coming up, it will last for k days. Payne dec12 Mapping查询
查看 某个index下所有type的mapping GET /beauties/_mapping 查看 指定index、指定type的mapping GET /beauties/_mapping/cn1 集群状态、增删改查、全量替换、强制创建、设置单个index的分片数副本数
检查集群健康状态,可以看集群颜色。(黄色:primary shard都正常,replica不正常) GET /_cat/health?v 列出集群所有index GET /_cat/indices?v GET _cluster/health PUT一条数据:如果指定文档不存在则创建,存在则全量替换。如果索引类型不存在,则自动创建索引、类型 PUT /beauties2 Match、Filter、排序、分页、全文检索、短语匹配、关键词高亮
查索引内所有文档记录 GET /beauties/my/_search GET /beauties/my/_search { "query":{ "match_all": {} } } 匹配、排序 GET /beauties/my/_search { "query": { "match": { "Name":