网站建设入驻,动易官方网站,python安装教程,南京网站建设润洽查看es中有哪些索引
请求方式#xff1a;GET
请求地址#xff1a;http://localhost:9200 /_cat/indices?v
参数#xff1a;无
结果#xff1a; 查看索引全部数据
请求方式#xff1a;GET
请求地址#xff1a;http://localhost:9200/index-2023-08/_search
参数GET
请求地址http://localhost:9200 /_cat/indices?v
参数无
结果 查看索引全部数据
请求方式GET
请求地址http://localhost:9200/index-2023-08/_search
参数
{query:{match_all:{}}
}
结果 查询多1个数据
请求方式GET
请求地址http://localhost:9200/index-2023-08/_search
解释http://地址端口/index名/_search
参数
{query: {match: {ability: 我是中国人}}
}结果 查询多个Index数据
请求方式GET
请求地址http://localhost:9200/index-2023-08,index-2023-07,index-2023-06/_search
解释多个Index可以用 “ , ” 间隔开示例 index1index2index3
参数
{query:{match_all:{}}
}
结果 冻结索引
请求方式POST
请求地址http://localhost:9200/index-2023-08/_freeze
解释http://地址端口/index名/_freeze
参数无
结果
{acknowledged: true,shards_acknowledged: true
} 冻结索引
请求方式POST
请求地址http://localhost:9200/index-2023-08/_unfreeze
解释http://地址端口/index名/_unfreeze
参数无
结果
{acknowledged: true,shards_acknowledged: true
}