Elasticsearch: Guides and Practical Know-how | Page 7 | mironsoft Blog
Elasticsearch
-
Jun 28, 2025
Force merge is one of the most effective and, at the same time, most dangerous maintenance actions in Elasticsearch. Applied correctly, on finished indices that are no longer written to, force merge compacts fragmented Lucene segments and noticeably speeds up subsequent read queries. Applied incorrectly, on a still actively written index, that same action creates a massive I/O spike that can seriously disrupt write performance and, with it, the entire cluster.
-
Jun 22, 2025
Correct shard sizing decides whether an Elasticsearch index runs stable for years or suffers from heap pressure and slow cluster state management after just a few months. Too many small shards waste resources on metadata overhead, too few large shards prevent parallelization. This article shows how to determine the target size per shard and rebuild existing indices without downtime.
-
Jun 15, 2025
An Elasticsearch index without deliberate mapping usually works fine on day one and turns into a construction site the moment the first production search problem shows up. Teams who clarify field types, immutability and analyzer assignment before indexing save themselves painful reindexing and inconsistent search results later.
-
Jun 4, 2025
Elasticsearch's text based BM25 scoring evaluates relevance purely on text matching, ignoring business relevant signals such as stock level or margin. Painless scripts inside a function score query can close that gap, but only once the Magento integration point and the performance implications are properly understood.
-
Jun 3, 2025
Match query and term query look interchangeable at first glance, but they work fundamentally differently. The match query analyzes text before comparing it, the term query compares exactly and without any filtering. Anyone who ignores this difference gets empty result lists on text fields and wrongly permissive hits on keyword fields, without understanding why.
-
Jun 1, 2025
When search in the store returns wrong or missing results, guessing rarely helps. Systematic search debugging starts by capturing the actual Elasticsearch query Magento generates, running that query directly against the cluster, and reliably separating whether the problem lies in Magento's logic or in the Elasticsearch index itself. This article walks through the methodology step by step.
-
May 27, 2025
Database-driven search with LIKE queries does not scale. Past 100,000 records it becomes slow, it finds nothing on typos, and relevance ranking is impossible. Elasticsearch solves all three problems: millisecond response times, fuzzy matching and configurable relevance scores, integrated into Symfony through a clear indexing and query protocol.
-
May 21, 2025
Solid cluster health monitoring does not stop at the simple green/yellow/red status, it watches the metrics that actually indicate a brewing problem: unassigned shards, growing heap pressure and rejected requests from full thread pool queues. This article shows which signals really deserve an alert and how to monitor them reliably.
-
May 18, 2025
@nuxtjs/i18n is the de facto standard module for shipping a Nuxt application in multiple languages, and it covers far more than plain text translation: it decides the URL structure per language, lazy-loads translation files on demand, and automatically generates the hreflang tags needed for international SEO. Getting the routing strategy wrong early on often means migrating the entire URL structure of the site later, which is why a deliberate decision at the start of a project pays off.
-
May 6, 2025
Log entries, search queries, or sensor events share a trait that classic product data does not have: they get written continuously, grow without bound, and are meant to disappear from the index automatically after a certain time. Before data streams, this time-series management had to be rebuilt manually from a combination of daily-created indices, a write alias, and an ILM policy, with plenty of places for a mistake to creep in. Data streams bundle exactly this pattern into a single, declarative concept. This article shows how data streams manage automatically rotating backing indices, how they differ from the classic alias pattern, and how a practical search query log for later analysis gets built on top of them.