Elastic学习
来源:互联网 发布:php读取txt文件前 编辑:程序博客网 时间:2024/06/05 05:17
创建一个index
curl -XPUT 'localhost:9200/customer?pretty&pretty'
查看所有的index
curl -XGET 'localhost:9200/_cat/indices?v&pretty'
创建一个document domain/{index}/{type}/id
curl -XPUT 'localhost:9200/customer/external/1?pretty&pretty' -d'
{
"name": "John Doe"
}'
查看id为1的document
curl -XGET 'localhost:9200/customer/external/1?pretty&pretty'
删除index
curl -XDELETE 'localhost:9200/customer?pretty&pretty'
查看
curl -XGET 'localhost:9200/_cat/indices?v&pretty'
修改限制:vim /etc/security/limits.conf 修改open file 为63356
curl -XPOST 'localhost:9200/customer/external?pretty&pretty' -d'
{
"name": "Jane Doe"
}'
更新:
curl -XPOST 'localhost:9200/customer/external/1/_update?pretty&pretty' -d'
{
"doc": { "name": "Jane Doe" }
}'
命令的格式:
<REST Verb> /<Index>/<Type>/<ID>
- Elastic学习
- Elastic Search 学习概要
- ELASTIC SEARCH学习笔记
- elastic search学习
- Elastic Search学习总结
- elastic
- elastic
- scikit-learn学习:elastic net
- Elastic Search系统学习之一: 入门
- Elastic-job源码学习——环境准备
- Elastic search系统学习之二: 插件安装
- Elastic search系统学习之三:设置elasticsearch
- Elastic search 系统学习之四: 文档API
- Elastic Net
- elastic编译
- elastic search
- elastic buffer
- Elastic-JOB
- Java之字符串常用操作
- dubbo源码 编译 测试
- Android Studio运行后程序未自动运行
- poj2318_TOYS_叉积判断点在线段的哪一侧
- JAVA中字符串函数subString简单用法
- Elastic学习
- 使用css写弹窗
- 频道管理
- ios-字典转模型
- Java字符串比较
- 向IIS10添加Mine类型
- JavaScript难点——立即执行函数(一)
- 自考必备,用上这些记忆大法,轻松过!
- A folder failed to be moved——Android SDK的安装问题解决方案