hello

随笔分类 -  elasticsearch

1
摘要:导入pom 点击查看代码 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2022-02-15 15:48 八股文研究生 阅读(72) 评论(0) 推荐(0)
摘要:1、官网下载安装包 地址:https://github.com/medcl/elasticsearch-analysis-ik/releases 2、下载对应es版本的分词器安装包 cd /home/fch/module wget https://github.com/medcl/elasticse 阅读全文
posted @ 2022-02-15 15:29 八股文研究生 阅读(217) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "aggs": { "age_groupby": { "terms": { "field": "age" } } }, "size": 0 } 阅读全文
posted @ 2022-02-14 17:29 八股文研究生 阅读(41) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "match_all": {} }, "sort": [ { "age": { "order": "desc" } } ], "fro 阅读全文
posted @ 2022-02-14 17:28 八股文研究生 阅读(42) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "match": { "name": "zhangsan" } }, "highlight": { "pre_tags": "<fon 阅读全文
posted @ 2022-02-14 17:27 八股文研究生 阅读(40) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "match_all": {} }, "sort": [ { "age": { "order": "desc" } }, { "_sc 阅读全文
posted @ 2022-02-14 17:26 八股文研究生 阅读(84) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "fuzzy": { "name": "zhangsan" } }, "sort": [ { "_id": { "order": "d 阅读全文
posted @ 2022-02-14 17:25 八股文研究生 阅读(40) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "_source": { "excludes": [ "name", "nickname" ] }, "query": { "terms": { "nick 阅读全文
posted @ 2022-02-14 17:24 八股文研究生 阅读(64) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "_source":["name"], "query":{ "match":{ "name":"zhangsan" } } } 阅读全文
posted @ 2022-02-14 17:22 八股文研究生 阅读(67) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "terms": { "name": [ "zhangsan", "lisi" ] } } } 阅读全文
posted @ 2022-02-14 17:20 八股文研究生 阅读(179) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query":{ "range":{ "age":{ "gte":30, "lte":35 } } } } 阅读全文
posted @ 2022-02-14 17:17 八股文研究生 阅读(112) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "fuzzy": { "name": { "value": "zhangsan" } } } } 阅读全文
posted @ 2022-02-14 17:17 八股文研究生 阅读(122) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "term": { "name": { "value": "zhangsan" } } } } 阅读全文
posted @ 2022-02-14 17:16 八股文研究生 阅读(59) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query":{ "multi_match":{ "query":"zhangsan", "fields":["name","nickname"] } } 阅读全文
posted @ 2022-02-14 17:15 八股文研究生 阅读(82) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "bool": { "must": [ { "match": { "name": "zhangsan" } } ], "should" 阅读全文
posted @ 2022-02-14 17:14 八股文研究生 阅读(61) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query":{ "match":{ "name":"zhangsan" } } } 阅读全文
posted @ 2022-02-14 17:12 八股文研究生 阅读(62) 评论(0) 推荐(0)
摘要:请求resful: GET 请求:http://119.91.127.xxx:9200/myuser/_search 请求方式: json { "query": { "match_all": {} } } 阅读全文
posted @ 2022-02-14 17:11 八股文研究生 阅读(114) 评论(0) 推荐(0)
摘要:1、创建doc 请求resful: POST 请求:http://119.91.127.xxx:9200/student1/_doc/2 请求方式:json { "title": "华为手机", "category": "华为", "images": "http://www.gulixueyuan. 阅读全文
posted @ 2022-02-14 17:08 八股文研究生 阅读(57) 评论(0) 推荐(0)
摘要:1、创建索引 请求resful:PUT 请求:http://119.91.127.xxx:9200/student1 请求方式:json { "settings": {}, "mappings": { "properties": { "name": { "type": "text", "index" 阅读全文
posted @ 2022-02-14 17:02 八股文研究生 阅读(85) 评论(0) 推荐(0)
摘要:1、下载安装包 Elasticsearch 的官方地址:https://www.elastic.co/cn/downloads/elasticsearch 1、liunx下载安装包 点击查看代码 进入/home/fch/module wget https://artifacts.elastic.co 阅读全文
posted @ 2022-02-14 16:53 八股文研究生 阅读(170) 评论(0) 推荐(0)

1
my name is zhangsan