1. standard analyzer 标准分析器是默认分词器,如果未指定,则使⽤该分词器。 { "analyzer": "standard", "text": "The best 3-points shooter is Curry!" } 2. simple analyzer simpl
一、elasticsearch的简单查询 1.term精确查询 POST /student2/_search { "query": { "term": { "sex": { "value": "女" } } } } 2.terms 多值
一、elasticsearch单节点的增删改 1.指定ID新增文档 PUT /student/_doc/1 { "age": 1, "name": "老王", "sex": "女" } { "_index" : "student", "_type" : "_doc", "_i
一、mapping基本操作 1.新建mapping 添加名字和年龄字段 PUT /student2/_mapping { "properties": { "age": { "type": "integer" }, "id": { "type": "
一、使用docker安装单节点elasticsearch 1.新建elasticsearch.yml cluster.name: "docker-cluster" network.host: 0.0.0.0 # 配置远程访问 http.host: 0.0.0.0 # 因为elasticsearc