0

When I index any document in elasticsearch, I always find out that the data is Unassigned. When I try to search, sort, delete or update any data it data, it works perfectly.

elasticsearch data using head plugin

The Cluster health is yellow:

enter image description here

Here is the index metadata:

{
"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": [ ]
}

I don't understand what I am doing wrong, so the data is "Unassigned". How can I fix this problem?

A.L
  • 10,259
  • 10
  • 67
  • 98
Istiak Mahmood
  • 2,330
  • 8
  • 31
  • 73

1 Answers1

0

Can you apply the following setting to enable the shard allocation:

curl -XPUT 'localhost:9200/{index}/_settings' -d '{"index.routing.allocation.disable_allocation": false}'
monu
  • 698
  • 4
  • 10