摘要:
阅读全文
posted @ 2020-12-27 22:15
秋华
阅读(226)
评论(0)
推荐(0)
摘要:
课程demo # 打开关闭索引 DELETE test #查看索引是否存在 HEAD test PUT test/_doc/1 { "key":"value" } #关闭索引 POST /test/_close #索引存在 HEAD test # 无法查询 POST test/_count #打开索 阅读全文
posted @ 2020-12-27 22:04
秋华
阅读(325)
评论(0)
推荐(0)
摘要:
课程demo # 移动一个分片从一个节点到另外一个节点 POST _cluster/reroute { "commands": [ { "move": { "index": "index_name", "shard": 0, "from_node": "node_name_1", "to_node" 阅读全文
posted @ 2020-12-27 21:46
秋华
阅读(211)
评论(0)
推荐(0)
摘要:
课程demo # Node Stats: GET _nodes/stats #Cluster Stats: GET _cluster/stats #Index Stats: GET kibana_sample_data_ecommerce/_stats #Pending Cluster Tasks 阅读全文
posted @ 2020-12-27 21:39
秋华
阅读(374)
评论(0)
推荐(0)
摘要:
课程demo GET _cat/nodes?v GET _nodes/stats/indices?pretty GET _cat/nodes?v&h=name,queryCacheMemory,queryCacheEvictions,requestCacheMemory,requestCacheHi 阅读全文
posted @ 2020-12-27 21:30
秋华
阅读(396)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 21:25
秋华
阅读(793)
评论(0)
推荐(0)
摘要:
课程demo pip3 install esrally esrally configure # 只测试 1000条数据 esrally --distribution-version=7.1.0 --test-mode # 测试完整数据 esrally --distribution-version=7 阅读全文
posted @ 2020-12-27 21:12
秋华
阅读(335)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 21:06
秋华
阅读(224)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 21:03
秋华
阅读(198)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 20:59
秋华
阅读(151)
评论(0)
推荐(0)
摘要:
课程demo { "template": "logs-*", "settings": { "index.indexing.slowlog.threshold.index.debug": "2s", "index.indexing.slowlog.threshold.index.info": "5s" 阅读全文
posted @ 2020-12-27 19:58
秋华
阅读(290)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 19:39
秋华
阅读(235)
评论(0)
推荐(0)
摘要:
相关阅读 https://www.elastic.co/cn/blog/introducing-elastic-cloud-on-kubernetes-the-elasticsearch-operator-and-beyond?elektra=products&storm=sub1 https:// 阅读全文
posted @ 2020-12-27 19:34
秋华
阅读(211)
评论(0)
推荐(0)
摘要:
代码Demo PUT logs_2019-06-27 PUT logs_2019-06-26 POST _aliases { "actions": [ { "add": { "index": "logs_2019-06-27", "alias": "logs_write" } }, { "remov 阅读全文
posted @ 2020-12-27 18:58
秋华
阅读(485)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 18:53
秋华
阅读(240)
评论(0)
推荐(0)
摘要:
课程代码 # 标记一个 Hot 节点 bin/elasticsearch -E node.name=hotnode -E cluster.name=geektime -E path.data=hot_data -E node.attr.my_node_type=hot # 标记一个 warm 节点 阅读全文
posted @ 2020-12-27 18:46
秋华
阅读(509)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 18:30
秋华
阅读(613)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 18:26
秋华
阅读(207)
评论(0)
推荐(0)
摘要:
课程demo # 生成证书 # 为您的Elasticearch集群创建一个证书颁发机构。例如,使用elasticsearch-certutil ca命令: bin/elasticsearch-certutil ca #为群集中的每个节点生成证书和私钥。例如,使用elasticsearch-certu 阅读全文
posted @ 2020-12-27 18:24
秋华
阅读(243)
评论(0)
推荐(0)
摘要:
如何为集群启用X-Pack Security 如何为内置用户设置密码 设置 Kibana与ElasticSearch通信鉴权 使用安全API创建对特定索引具有有限访问权限的用户 This tutorial involves a single node cluster, but if you had 阅读全文
posted @ 2020-12-27 18:16
秋华
阅读(1186)
评论(0)
推荐(0)
摘要:
DELETE test PUT test/_doc/1 { "content":"Hello World" } POST test/_search { "profile": "true", "query": { "match": { "content": "Hello World" } } } PO 阅读全文
posted @ 2020-12-27 18:02
秋华
阅读(130)
评论(0)
推荐(0)
摘要:
课程demo ###### Cookie Service ##索引数据,dynamic mapping 会不断加入新增字段 PUT cookie_service/_doc/1 { "url":"www.google.com", "cookies":{ "username":"tom", "age": 阅读全文
posted @ 2020-12-27 17:50
秋华
阅读(222)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 17:36
秋华
阅读(379)
评论(0)
推荐(0)
摘要:
#########Demo for Pipeline############### DELETE tech_blogs #Blog数据,包含3个字段,tags用逗号间隔 PUT tech_blogs/_doc/1 { "title":"Introducing big data......", "ta 阅读全文
posted @ 2020-12-27 17:23
秋华
阅读(606)
评论(0)
推荐(0)
摘要:
课程demo DELETE blogs/ # 写入文档 PUT blogs/_doc/1 { "content":"Hadoop is cool", "keyword":"hadoop" } # 查看 Mapping GET blogs/_mapping # 修改 Mapping,增加子字段,使用英 阅读全文
posted @ 2020-12-27 17:17
秋华
阅读(1113)
评论(0)
推荐(1)
摘要:
课程demo PUT my_blogs/_doc/comment1?routing=blog1 { "comment":"I am learning ELK", "username":"Jack", "blog_comments_relation":{ "name":"comment", "pare 阅读全文
posted @ 2020-12-27 17:09
秋华
阅读(654)
评论(0)
推荐(0)
摘要:
课程demos DELETE blog # 设置blog的 Mapping PUT /blog { "mappings": { "properties": { "content": { "type": "text" }, "time": { "type": "date" }, "user": { " 阅读全文
posted @ 2020-12-27 17:05
秋华
阅读(1194)
评论(0)
推荐(1)
摘要:
课程demo DELETE my_flights PUT my_flights { "settings": { "number_of_shards": 20 }, "mappings" : { "properties" : { "AvgTicketPrice" : { "type" : "float 阅读全文
posted @ 2020-12-27 16:57
秋华
阅读(912)
评论(0)
推荐(0)
摘要:
DELETE /employees PUT /employees/ { "mappings" : { "properties" : { "age" : { "type" : "integer" }, "gender" : { "type" : "keyword" }, "job" : { "type 阅读全文
posted @ 2020-12-27 16:53
秋华
阅读(246)
评论(0)
推荐(0)
摘要:
课程 demo DELETE employees PUT /employees/_bulk { "index" : { "_id" : "1" } } { "name" : "Emma","age":32,"job":"Product Manager","gender":"female","sala 阅读全文
posted @ 2020-12-27 16:45
秋华
阅读(1228)
评论(0)
推荐(0)
摘要:
demos DELETE /employees PUT /employees/ { "mappings" : { "properties" : { "age" : { "type" : "integer" }, "gender" : { "type" : "keyword" }, "job" : { 阅读全文
posted @ 2020-12-27 16:42
秋华
阅读(282)
评论(0)
推荐(0)
摘要:
DELETE products PUT products PUT products/_doc/1 { "title":"iphone", "count":100 } GET products/_doc/1 PUT products/_doc/1?if_seq_no=1&if_primary_term 阅读全文
posted @ 2020-12-27 16:34
秋华
阅读(415)
评论(0)
推荐(0)
摘要:
课程Demo POST tmdb/_search { "from": 10000, "size": 1, "query": { "match_all": { } } } #Scroll API DELETE users POST users/_doc {"name":"user1","age":10 阅读全文
posted @ 2020-12-27 16:28
秋华
阅读(559)
评论(0)
推荐(0)
摘要:
课程demo #单字段排序 POST /kibana_sample_data_ecommerce/_search { "size": 5, "query": { "match_all": { } }, "sort": [ {"order_date": {"order": "desc"}} ] } # 阅读全文
posted @ 2020-12-27 16:00
秋华
阅读(597)
评论(0)
推荐(0)
摘要:
课程demo DELETE message PUT message { "settings": { "number_of_shards": 20 } } GET message POST message/_doc?routing=1 { "content":"good" } POST message 阅读全文
posted @ 2020-12-27 15:54
秋华
阅读(158)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 15:37
秋华
阅读(325)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 15:35
秋华
阅读(149)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 15:32
秋华
阅读(624)
评论(0)
推荐(0)
摘要:
课程Demo bin/elasticsearch -E node.name=node1 -E cluster.name=geektime -E path.data=node1_data bin/elasticsearch -E node.name=node2 -E cluster.name=geek 阅读全文
posted @ 2020-12-27 15:26
秋华
阅读(203)
评论(0)
推荐(0)
摘要:
课程demo //启动3个集群 bin/elasticsearch -E node.name=cluster0node -E cluster.name=cluster0 -E path.data=cluster0_data -E discovery.type=single-node -E http. 阅读全文
posted @ 2020-12-27 13:25
秋华
阅读(416)
评论(0)
推荐(0)
摘要:
课程demo DELETE articles PUT articles { "mappings": { "properties": { "title_completion":{ "type": "completion" } } } } POST articles/_bulk { "index" : 阅读全文
posted @ 2020-12-27 13:11
秋华
阅读(640)
评论(0)
推荐(0)
摘要:
课程Demo DELETE articles PUT articles { "mappings": { "properties": { "title_completion":{ "type": "completion" } } } } POST articles/_bulk { "index" : 阅读全文
posted @ 2020-12-27 13:06
秋华
阅读(440)
评论(0)
推荐(0)
摘要:
课程Demo DELETE blogs PUT /blogs/_doc/1 { "title": "About popularity", "content": "In this post we will talk about...", "votes": 0 } PUT /blogs/_doc/2 { 阅读全文
posted @ 2020-12-27 13:01
秋华
阅读(616)
评论(0)
推荐(0)
摘要:
课程Demo POST _scripts/tmdb { "script": { "lang": "mustache", "source": { "_source": [ "title","overview" ], "size": 20, "query": { "multi_match": { "qu 阅读全文
posted @ 2020-12-27 12:50
秋华
阅读(532)
评论(0)
推荐(0)
摘要:
环境要求 Python 2.7.15 可以使用pyenv管理多个python版本(可选) 进入 tmdb-search目录 Run pip install -r requirements.txt Run python ./ingest_tmdb_from_file.py 课程demo POST tm 阅读全文
posted @ 2020-12-27 12:47
秋华
阅读(534)
评论(0)
推荐(0)
摘要:
课程demo 来到杨过曾经生活过的地方,小龙女动情地说:“我也想过过过儿过过的生活。” 你也想犯范范玮琪犯过的错吗 校长说衣服上除了校徽别别别的 这几天天天天气不好 我背有点驼,麻麻说“你的背得背背背背佳 #stop word DELETE my_index PUT /my_index/_doc/1 阅读全文
posted @ 2020-12-27 12:39
秋华
阅读(937)
评论(0)
推荐(0)
摘要:
POST blogs/_search { "query": { "dis_max": { "queries": [ { "match": { "title": "Quick pets" }}, { "match": { "body": "Quick pets" }} ], "tie_breaker" 阅读全文
posted @ 2020-12-27 12:35
秋华
阅读(791)
评论(0)
推荐(0)
摘要:
PUT /blogs/_doc/1 { "title": "Quick brown rabbits", "body": "Brown rabbits are commonly seen." } PUT /blogs/_doc/2 { "title": "Keeping pets healthy", 阅读全文
posted @ 2020-12-27 12:30
秋华
阅读(425)
评论(0)
推荐(0)
摘要:
POST /products/_bulk { "index": { "_id": 1 }} { "price" : 10,"avaliable":true,"date":"2018-01-01", "productID" : "XHDK-A-1293-#fJ3" } { "index": { "_i 阅读全文
posted @ 2020-12-27 01:38
秋华
阅读(551)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 01:18
秋华
阅读(392)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 01:01
秋华
阅读(186)
评论(0)
推荐(0)
摘要:
DELETE products PUT products { "settings": { "number_of_shards": 1 } } POST /products/_bulk { "index": { "_id": 1 }} { "productID" : "XHDK-A-1293-#fJ3 阅读全文
posted @ 2020-12-27 00:57
秋华
阅读(244)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 00:48
秋华
阅读(138)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 00:45
秋华
阅读(193)
评论(0)
推荐(0)
摘要:
#数字字符串被映射成text,日期字符串被映射成日期 PUT ttemplate/_doc/1 { "someNumber":"1", "someDate":"2019/01/01" } GET ttemplate/_mapping #Create a default template PUT _t 阅读全文
posted @ 2020-12-27 00:41
秋华
阅读(671)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-12-27 00:29
秋华
阅读(388)
评论(0)
推荐(0)
摘要:
#设置 index 为 false DELETE users PUT users { "mappings" : { "properties" : { "firstName" : { "type" : "text" }, "lastName" : { "type" : "text" }, "mobil 阅读全文
posted @ 2020-12-27 00:25
秋华
阅读(479)
评论(0)
推荐(0)
摘要:
Mapping中的字段一旦设定后,禁止直接修改。因为倒排索引生成后不允许直接修改。需要重新建立新的索引,做reindex操作。 类似数据库中的表结构定义,主要作用 定义所以下的字段名字 定义字段的类型 定义倒排索引相关的配置(是否被索引?采用的Analyzer) 对新增字段的处理 true fals 阅读全文
posted @ 2020-12-27 00:13
秋华
阅读(736)
评论(0)
推荐(0)

浙公网安备 33010602011771号