elasticsearch 语句
Posted Rover20230226
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了elasticsearch 语句相关的知识,希望对你有一定的参考价值。
#测试分词器 GET /_analyze "analyzer": "ik_max_word", "text": "泰裤辣,萌萌哒" #创建索引库和映射 PUT /student "mappings": "properties": "name": "type": "text" , "analyzer": "ik_smart" , "info": "type": "text" ,"analyzer": "ik_smart" , "age": "type": "integer" #新增数据 POST /student/_doc/1 "name":"张飞", "info":"手持丈八蛇矛", "age":38 #查询数据 GET /student/_doc/1 #修改数据 PUT /student/_doc/1 "name":"关羽", "info":"手持青龙偃月刀", "age":40 #删除数据 DELETE /student/_doc/1
以上是关于elasticsearch 语句的主要内容,如果未能解决你的问题,请参考以下文章
Elasticsearch-hadoop & Elasticsearch-spark sql - 语句跟踪扫描&滚动