随笔分类 -  ElasticSearch数据库

摘要:1、首先安装elasticsearch包 pip install elasticsearch (一般会包含新旧版本,如果想要特定的版本,比如5.x 可以在后面加5数字) ```Python """ 1、首先安装elasticsearch包 pip install elasticsearch (一般会 阅读全文
posted @ 2023-07-17 15:15 运维爱背锅 阅读(334) 评论(0) 推荐(0)
摘要:[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search.html) [ht 阅读全文
posted @ 2023-07-17 15:07 运维爱背锅 阅读(225) 评论(0) 推荐(0)
摘要:文档就是相当于每条记录。 **每个文档(数据记录行)都有几个元数据,分别是**: - _index,表示该文档是那个索引中的。 - _type,表示文档的类型 - _id,文档的唯一ID编号 - _score,相关性分数。 # 添加文档(添加数据) ```JSON POST /库名/类型名[/id] 阅读全文
posted @ 2023-07-17 15:06 运维爱背锅 阅读(127) 评论(0) 推荐(0)
摘要:**创建别名:** [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-aliases.html](https://www.elastic.co/guide/en/elasticsearch/reference/6 阅读全文
posted @ 2023-07-17 15:05 运维爱背锅 阅读(207) 评论(0) 推荐(0)
摘要:[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping.html) 7 阅读全文
posted @ 2023-07-17 15:04 运维爱背锅 阅读(121) 评论(0) 推荐(0)
摘要:官方文档:[https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices.ht 阅读全文
posted @ 2023-07-17 15:04 运维爱背锅 阅读(55) 评论(0) 推荐(0)
摘要:[https://github.com/medcl/elasticsearch-analysis-ik](https://github.com/medcl/elasticsearch-analysis-ik) **分词测试:** [https://www.elastic.co/guide/en/el 阅读全文
posted @ 2023-07-17 15:03 运维爱背锅 阅读(84) 评论(0) 推荐(0)
摘要:# 搭建实例 先复制2份解压后的完整目录,将里面的data和log删除. ```Bash elasticsearch-6.8.23-node2 elasticsearch-6.8.23-node3 ``` 修改3个实例的配置文件:(只列出一份,其他的改一下节点名和监听端口、节点内部通信端口就可以了) 阅读全文
posted @ 2023-07-17 12:05 运维爱背锅 阅读(301) 评论(0) 推荐(0)
摘要:# 快照备份 备份和还原的前提:在配置文件elasticsearch.yml中设置path.repo ```YAML path.repo: ["D:\\elasticsearch-6.8.23\\elasticsearch-6.8.23\\snapshot_data"] ``` ## 创建快照仓库 阅读全文
posted @ 2023-07-17 12:03 运维爱背锅 阅读(838) 评论(0) 推荐(0)