My question is about of tihis response keywords, what do these three keywords mean, respectively? For example, what should I understand from the response shards_acknowledged: true?
acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. Note that it is still possible for either acknowledged or shards_acknowledged to be false , but the index creation was successful. These values simply indicate whether the operation completed before the timeout. If acknowledged is false , then we timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. If shards_acknowledged is false , then we timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (i.e. acknowledged=true ).
I understand perfectly. But after i read your anwser new question appeared my mind. Why we do have to have a time to create index and its shards? Why we do not wait for index to be created?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.