上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 186 下一页
摘要: 一,报错信息: ModuleNotFoundError: No module named 'docx' 二,解决: pip install python-docx 阅读全文
posted @ 2025-12-21 18:25 刘宏缔的架构森林 阅读(89) 评论(0) 推荐(0)
摘要: 一,通过pip安装 $ pip install celery 事先启动redis, 安装访问redis的库 $ pip install redis 二,创建task1 代码: import time from celery import Celery celery = Celery('tasks', 阅读全文
posted @ 2025-12-21 15:08 刘宏缔的架构森林 阅读(34) 评论(0) 推荐(0)
摘要: 一,minimum_should_match 什么是 minimum_should_match?minimum_should_match 用于指定在 should 子句中至少需要匹配多少个条件才能返回文档。它可以用以下方式表示: 数字:2 表示至少匹配 2 个条件百分比:"60%" 表示至少匹配 6 阅读全文
posted @ 2025-12-18 23:14 刘宏缔的架构森林 阅读(22) 评论(0) 推荐(0)
摘要: 一,ik_smart 和 ik_max_word 两种分词器 ik分词插件支持 ik_smart 和 ik_max_word 两种分词器 ik_smart - 粗粒度的分词ik_max_word - 会尽可能的枚举可能的关键词,就是分词比较细致一些,会分解出更多的关键词 二,实际比较的例子: ik_ 阅读全文
posted @ 2025-12-17 22:17 刘宏缔的架构森林 阅读(32) 评论(0) 推荐(0)
摘要: 一,查看已安装的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 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0)
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt 阅读全文
posted @ 2025-12-17 20:43 刘宏缔的架构森林 阅读(16) 评论(0) 推荐(0)
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt 阅读全文
posted @ 2025-12-17 19:20 刘宏缔的架构森林 阅读(8) 评论(0) 推荐(0)
摘要: 一,代码: from elasticsearch import Elasticsearch # 连接到 Elasticsearch,替换为实际的 IP 地址和密码 # , basic_auth=('elastic', 'Elastic_j625sz') es = Elasticsearch('htt 阅读全文
posted @ 2025-12-16 23:13 刘宏缔的架构森林 阅读(12) 评论(0) 推荐(0)
摘要: 一,官方文档 https://www.elastic.co/docs/reference/elasticsearch/clients/python 二,安装第三方库 $ pip install elasticsearch 三,代码 from elasticsearch import Elastics 阅读全文
posted @ 2025-12-16 22:47 刘宏缔的架构森林 阅读(11) 评论(0) 推荐(0)
摘要: 一,官网下载: 地址:下载页面入口 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 刘宏缔的架构森林 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 186 下一页