es6.6.1 rest常规操作
ES 内置的REST接口 / 获取版本信息 /index/_search 搜索指定索引下的数据 test/_search /_aliases 获取或者操作索引下的别名 _aliases /index/ 查看指定索引下的详细信息 test /index/_mapping 创建或者操作mapping test/_settings /index/_settings 创建或者操作settings test/_settings
创建索引(以索引名:test 为例子) test PUT test前面不要加/ test/user/1 POST { "name": "jacked", "age": 28 }
test/user/_search/ GET {"query":{"match":{"name":"jacked"}}} 查询
test/user/_search?q=name:jacked GET test/user/1 根据ID查询
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:2021-02-03,如有侵权请联系 cloudcommunity@tencent 删除rest接口数据搜索索引发布者:admin,转转请注明出处:http://www.yc00.com/web/1754990818a5224616.html
评论列表(0条)