当我在Elasticsearch中索引任何文档时,我总是发现数据是未分配的。当我尝试搜索,排序,删除或更新其数据的任何数据时,它都可以完美地工作。
群集运行状况为黄色:
这是索引元数据:
{
"state": "open",
"settings": {
"index": {
"creation_date": "1435151717012",
"number_of_shards": "5",
"uuid": "ixYnG8_ESa-b7ZHWrnFqRw",
"version": {
"created": "1060099"
},
"number_of_replicas": "1"
}
},
"mappings": { "hello": { ....... }},
"aliases": [ ]
}
我不明白自己在做什么错,因此数据是“未分配的”。我该如何解决这个问题?
最佳答案
您是否可以应用以下设置来启用分片分配:
curl -XPUT 'localhost:9200/{index}/_settings' -d '{"index.routing.allocation.disable_allocation": false}'
关于symfony - elasticsearch返回 “Unassigned”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31118123/