
ElasticSearch
慕容潇湘
代码搬运工
展开
-
Elasticsearch问题总结
Elasticsearch默认禁用_id字段进行排序,这是因为_id字段通常不需要进行聚合或排序操作,启用字段数据可能会消耗大里内存。默认情况下,Elasticsearch禁用了对文本字段(包括_1d字段)的字段数据访问,以节省内存。方法1:可以通过更新Elasticsearch的动态集群设置来重新启用对_id 字段的字段数据访问。方法2:使用sort时指定_doc排序。原创 2024-12-18 18:57:04 · 502 阅读 · 0 评论 -
Elasticsearch学习总结一
把资料中的elasticsearch-analysis-ik-7.4.0.zip上传到服务器上,放到对应目录(plugins)解压。原创 2023-03-26 09:31:14 · 115 阅读 · 0 评论 -
ES学习总结一
http://localhost:9200/shopping 发起put请求{ "acknowledged": true, "shards_acknowledged": true, "index": "shopping"}http://localhost:9200/shopping发起post请求{ "error": "Incorrect HTTP method for uri [/shopping] and method [POST], allow...原创 2021-04-25 19:03:08 · 280 阅读 · 0 评论 -
Elasticsearch学习总结二
集群搭建集群名称:集群内所有node都要保持一致,节点名称:都不一样http端口号,如果集群在同一台服务器上,要区分开,否则,可以一样 集群配置集群状态检查原创 2022-07-10 21:20:15 · 284 阅读 · 0 评论 -
Spring Data ElasticSearch 学习总结
报错一:elasticsearch报 NoNodeAvailableException[None of the configured nodes are available: [{#transpor...解决方案:yml配置文件和项目中保持节点名称一致,例如:cluster.name: elasticsearch报错二:集群健康值: 未连接http.port: 920...原创 2021-05-23 14:42:25 · 183 阅读 · 0 评论 -
ES学习总结-match_phrase
短语搜索找出一个属性中的独立单词是没有问题的,但有时候想要精确匹配一系列单词或者_短语_ 。 比如, 我们想执行这样一个查询,仅匹配同时包含 “rock”和“climbing” ,并且二者以短语 “rock climbing” 的形式紧挨着的雇员记录。为此对match查询稍作调整,使用一个叫做match_phrase的查询:GET /megacorp/employee/_search{ "query" : { "match_phrase" : { ...原创 2021-05-23 14:40:55 · 257 阅读 · 0 评论 -
ES学习总结-分词
GET work_order_flow/_analyze{ "text":"我爱中国"}{ "tokens" : [ { "token" : "我", "start_offset" : 0, "end_offset" : 1, "type" : "<IDEOGRAPHIC>", "position" : 0 }, { "token" : "爱", "start_offs...原创 2021-05-21 13:44:43 · 308 阅读 · 0 评论