This is follow up Elastic Search - Getting Start Post
More details and step by step instruction
Mapping and indexing data
Mapping
A mapping is a schema definition.
|
|
Import Document
|
|
Bulk import
|
|
Update
Every document has a _version field
Elasticsearch documents are immutable.
- a new doc is created with an incremented _version
- the old document is marked for deletion
|
|
create doc with same id, it also increase _version field. such as:
|
|
Delete
|
|
Concurrency
Optimistic concurrency control
In short, ELK use _version field to control version of data
For conflict _version: Use retry_on_conflicts+N to automatically retry
|
|
Data modeling
Normalized data VS Denormalized data
think about Denormalized data in ELK
Strategies for relational data
In short answer, join field (ELK 6)
parent and child data should be store in same shards
|
|