Han Yi
April 3, 2018
PUT products/doc/_settings
{
"index": {
"refresh_interval": "30s"
}
}
Use retry_on_conflict in URL can set retry times for version conflict
Operation 1
Operation 2
Get document
Soft delete
Reindex
Version 4
Timeline
Version 4
Version 4
Version 5
❌
PUT products/_settings
{
"index": {
"number_of_replicas": 0
}
}
restart due to unexpected events
{
"_index": "prdts",
"_type": "doc",
"_id": "1",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 0,
"_primary_term": 1
}