会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刘宏缔的架构森林
专注架构的博客
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
178
下一页
2025年12月18日
es: minimum_should_match的作用
摘要: 一,minimum_should_match 什么是 minimum_should_match?minimum_should_match 用于指定在 should 子句中至少需要匹配多少个条件才能返回文档。它可以用以下方式表示: 数字:2 表示至少匹配 2 个条件百分比:"60%" 表示至少匹配 6
阅读全文
posted @ 2025-12-18 23:14 刘宏缔的架构森林
阅读(1)
评论(0)
推荐(0)
2025年12月17日
es: ik中文分词ik_smart 和 ik_max_word 两种分词器的不同
摘要: 一,ik_smart 和 ik_max_word 两种分词器 ik分词插件支持 ik_smart 和 ik_max_word 两种分词器 ik_smart - 粗粒度的分词ik_max_word - 会尽可能的枚举可能的关键词,就是分词比较细致一些,会分解出更多的关键词 二,实际比较的例子: ik_
阅读全文
posted @ 2025-12-17 22:17 刘宏缔的架构森林
阅读(6)
评论(0)
推荐(0)
es: 安装ik中文分词9.2.2
摘要: 一,查看已安装的plugin $ /opt/soft/elasticsearch-9.2.2/bin/elasticsearch-plugin list $ ls /opt/soft/elasticsearch-9.2.2/plugins/ $ 二,安装: 从这个页面手动下载: https://re
阅读全文
posted @ 2025-12-17 22:09 刘宏缔的架构森林
阅读(10)
评论(0)
推荐(0)
es:python:指定索引的mapping和获取mapping
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt
阅读全文
posted @ 2025-12-17 20:43 刘宏缔的架构森林
阅读(5)
评论(0)
推荐(0)
es9:python:搜索文档/列出索引中所有文档
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt
阅读全文
posted @ 2025-12-17 19:20 刘宏缔的架构森林
阅读(3)
评论(0)
推荐(0)
2025年12月16日
es: python添加、更新、删除doc
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt
阅读全文
posted @ 2025-12-16 23:13 刘宏缔的架构森林
阅读(2)
评论(0)
推荐(0)
es:python访问elasticsearch
摘要: 一,官方文档 https://www.elastic.co/docs/reference/elasticsearch/clients/python 二,安装第三方库 $ pip install elasticsearch 三,代码 from elasticsearch import Elastics
阅读全文
posted @ 2025-12-16 22:47 刘宏缔的架构森林
阅读(4)
评论(0)
推荐(0)
2025年12月14日
es: 安装kibana9
摘要: 一,官网下载: 地址:下载页面入口 https://www.elastic.co/cn/downloads/ kibana下载地址: https://www.elastic.co/cn/downloads/kibana 如图: 二,安装 1,解压: $ tar -zxvf kibana-9.2.2-
阅读全文
posted @ 2025-12-14 12:44 刘宏缔的架构森林
阅读(19)
评论(0)
推荐(0)
2025年12月13日
es: 安装elasticsearch9
摘要: 一,官网下载: 官网: https://www.elastic.co/platform 二,安装 解压: $ tar -zxvf elasticsearch-9.2.2-linux-x86_64.tar.gz 移动到安装目录: $ mv elasticsearch-9.2.2 /opt/soft/
阅读全文
posted @ 2025-12-13 16:03 刘宏缔的架构森林
阅读(14)
评论(0)
推荐(0)
2025年12月10日
python: 用os库判断进程是否在运行中?
摘要: 一,代码: import argparse import psutil import os def get_process_list(): with os.popen('ps aux') as f: output = f.read() # print(output) if 'python3 grab
阅读全文
posted @ 2025-12-10 23:26 刘宏缔的架构森林
阅读(7)
评论(0)
推荐(0)
1
2
3
4
5
···
178
下一页
公告