随笔分类 -  ELASTICSEARCH

摘要:课程 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 秋华 编辑
摘要:demos DELETE /employees PUT /employees/ { "mappings" : { "properties" : { "age" : { "type" : "integer" }, "gender" : { "type" : "keyword" }, "job" : { 阅读全文
posted @ 2020-12-27 16:42 秋华 编辑
摘要: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 秋华 编辑
摘要:课程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 秋华 编辑
摘要:课程demo #单字段排序 POST /kibana_sample_data_ecommerce/_search { "size": 5, "query": { "match_all": { } }, "sort": [ {"order_date": {"order": "desc"}} ] } # 阅读全文
posted @ 2020-12-27 16:00 秋华 编辑
摘要:课程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 秋华 编辑
摘要:课程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 秋华 编辑
摘要:课程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 秋华 编辑
摘要:课程demo DELETE articles PUT articles { "mappings": { "properties": { "title_completion":{ "type": "completion" } } } } POST articles/_bulk { "index" : 阅读全文
posted @ 2020-12-27 13:11 秋华 编辑
摘要:课程Demo DELETE articles PUT articles { "mappings": { "properties": { "title_completion":{ "type": "completion" } } } } POST articles/_bulk { "index" : 阅读全文
posted @ 2020-12-27 13:06 秋华 编辑
摘要:课程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 秋华 编辑
摘要:课程Demo POST _scripts/tmdb { "script": { "lang": "mustache", "source": { "_source": [ "title","overview" ], "size": 20, "query": { "multi_match": { "qu 阅读全文
posted @ 2020-12-27 12:50 秋华 编辑
摘要:环境要求 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 秋华 编辑
摘要:课程demo 来到杨过曾经生活过的地方,小龙女动情地说:“我也想过过过儿过过的生活。” 你也想犯范范玮琪犯过的错吗 校长说衣服上除了校徽别别别的 这几天天天天气不好 我背有点驼,麻麻说“你的背得背背背背佳 #stop word DELETE my_index PUT /my_index/_doc/1 阅读全文
posted @ 2020-12-27 12:39 秋华 编辑
摘要:POST blogs/_search { "query": { "dis_max": { "queries": [ { "match": { "title": "Quick pets" }}, { "match": { "body": "Quick pets" }} ], "tie_breaker" 阅读全文
posted @ 2020-12-27 12:35 秋华 编辑
摘要: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 秋华 编辑
摘要: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 秋华 编辑