ElasticSearch性能优化与问题排查实战
1. 预热器测试
为了测试预热器(warmers),我们先创建一个简单的索引:
curl -XPUT localhost:9200/docs -d '{
"mappings" : {
"doc" : {
"properties" : {
"name": { "type": "string", "store": "yes", "index":
"analyzed" }
}
}
}
}'
接着,创建一个名为 child 的类型,作为之前创建的 doc 类型文档的子文档:
curl -XPUT 'localhost:9200/docs/child/_mapping' -d '{
"child" : {
"_parent":{
"type" : "doc"
},
"properties" : {
"name": { "type": "string", "store": "yes", "index":
"analyzed" }
}
}
}'
之后,索引一个 doc 类型的文档和大约 80,000 个 child 类型的文档
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



