π What is Elasticsearch?
Elasticsearch is a search and analytics engine used to store, search, and analyze massive volumes of data quickly.
At Healthcare Manufaktur, we use Elasticsearch to power data-driven applications that need fast access to structured and unstructured data β such as employee records, system logs, healthcare data, or analytics dashboards.
𧱠Core Conceptsβ
Understanding Elasticsearch starts with 3 main terms:
π¦ Indexβ
An index is like a database in traditional systems. It contains documents with a specific structure.
You can have many indices, for example:
hcm-employees
logs-2025-04
projects-data
π Documentβ
A document is a JSON object that contains your data.
Example:
{
"name": "Mohamed HANNANI",
"position": "Data Scientist",
"location": {
"lat": 48.7758,
"lon": 9.1829
}
}
π·οΈ Fieldβ
A field is a key-value pair inside the document. For example:
"name": "Mohamed HANNANI"
"location": { "lat": ..., "lon": ... }
"timestamp": "2025-04-01T08:00:00Z"
Fields can have different types like text
, keyword
, geo_point
, or date
.
π How We Use Elasticsearch at HCMβ
Hereβs how Elasticsearch fits into our workflow:
Use Case | Example |
---|---|
π§ Employee Indexing | Search, filter, and map team members |
π Analytics | Log patterns, user activity, system trends |
π Geo Dashboards | Map employees or facilities by location |
π Fast Search Experience | Autocomplete search bar or filtered lists |
Kibana is our main tool to interact with Elasticsearch.
βοΈ Where Does My Data Go?β
Every time you submit data (via Kibana Dev Tools, code, or API), it is stored in:
- An index
- As a document
- Made up of fields
This structure helps us query it fast and visualize it in Kibana.
β Up Nextβ
In the next guide, weβll learn how to create a new index from scratch using Dev Tools in Kibana.