Elasticsearch 入门 索引、分词器

term, match_phrase, match查询

参考 ElasticSearch match, match_phrase, term的区别

  • term是对输入不分词,进行全文索引查询。存储时是否启用分词器,会影响查询效果
  • match_phase对输入分词,但要求查询时将每个term都搜到,且顺序一致。
  • match是对输入分词,只要文档包含了查询的一部分条件,都可以被返回。

其它规则
Elasticsearch 查询之term,match,match_phrase

索引构建 text keyword vector

elasticsearch设置字段不索引,或源数据只索引不存储。设置后即可。

复制代码
 "index": false

保存文档

1.elasticsearch文档存储(保存|修改|删除)

保存文档时,路径参数可以带上ID,或不带ID。数据参数是JSON格式。

复制代码
Put localhost:9200/customer/external/2
 
{
  "name":"zhangsan2"
}
相关推荐
Elasticsearch14 小时前
需要知道某个同义词是否实际匹配了你的 Elasticsearch 查询吗?
elasticsearch
洛森唛3 天前
ElasticSearch查询语句Query String详解:从入门到精通
后端·elasticsearch
洛森唛4 天前
Elasticsearch DSL 查询语法大全:从入门到精通
后端·elasticsearch
Elasticsearch6 天前
如何使用 Agent Builder 排查 Kubernetes Pod 重启和 OOMKilled 事件
elasticsearch
Elasticsearch8 天前
通用表达式语言 ( CEL ): CEL 输入如何改进 Elastic Agent 集成中的数据收集
elasticsearch
海兰9 天前
离线合同结构化提取与检索:LangExtract + 本地DeepSeek + Elasticsearch 9.x
大数据·elasticsearch·django
yumgpkpm9 天前
AI视频生成:Wan 2.2(阿里通义万相)在华为昇腾下的部署?
人工智能·hadoop·elasticsearch·zookeeper·flink·kafka·cloudera
Sheffield10 天前
如果把ZooKeeper按字面意思比作动物园管理员……
elasticsearch·zookeeper·kafka
嗝屁小孩纸10 天前
ES索引重建(零工具纯脚本执行)
大数据·elasticsearch·搜索引擎