Elasticsearch: Guides and Practical Know-how | Page 5 | mironsoft Blog
Elasticsearch
-
Sep 27, 2025
Magento 2 needs a precisely tuned service stack. PHP-FPM, Nginx, MariaDB, Redis, Elasticsearch or OpenSearch, and a Node container for frontend builds: each of these services has specific configuration requirements that differ in Docker from a classic server installation. Knowing these differences is what lets you build a stable and performant Magento Docker stack.
-
Sep 25, 2025
A snapshot only becomes a real backup strategy once the repository is set up correctly, the snapshot frequency is automated through an SLM policy, and the restore path is tested regularly. This article shows how snapshot repositories on S3 and filesystem work, how incremental snapshots save storage, and how a restore actually plays out in practice without endangering the production cluster.
-
Sep 17, 2025
The date histogram aggregation groups documents into fixed time buckets and is the foundation of almost every time series analysis in Elasticsearch and OpenSearch. Confuse calendar_interval with fixed_interval or ignore timezones, and you get dashboards with shifted bars and wrong day boundaries, without the query ever throwing an error.
-
Sep 13, 2025
An array of objects looks harmless in JSON, but is stored completely differently internally depending on the chosen field type. The default type object flattens the structure and loses the association between fields across different array entries, leading to hits that should never have matched. Nested preserves exactly that relationship, at the cost of more resources.
-
Sep 13, 2025
Autocomplete is not a simple prefix search, it is its own discipline with three different implementation approaches in Elasticsearch that differ substantially in latency, storage cost and flexibility. Anyone who understands the Completion Suggester, the Edge N-Gram approach and search_as_you_type can pick the right solution for each use case, instead of forcing a one-size-fits-all implementation.
-
Sep 10, 2025
The Google results page has long stopped being ten equal blue links: featured snippets, knowledge panels, image carousels, and shopping results all compete for the same screen space. Understanding which feature is realistically achievable for which search intent keeps optimization effort from being wasted on unreachable goals.
-
Sep 6, 2025
An initial catalog load with several million product documents runs noticeably slower under Elasticsearch's default settings than the underlying hardware could actually deliver. The bulk API itself is rarely the bottleneck, it is the interplay of batch size, refresh interval, replica count, and thread pool configuration, which under default values is tuned for balanced continuous operation, not for a short, intensive bulk import. This article shows how to systematically determine the optimal batch size, which temporary setting changes have the biggest effect during a bulk load, and what a practical tuning checklist looks like for the initial indexing of a large catalog.
-
Aug 28, 2025
Fuzzy search catches typos by allowing words that are similar to, but not identical with, the search term. The fuzziness parameter controls, through the Levenshtein distance, how many character changes are tolerated. Anyone who calibrates this parameter incorrectly ends up with either too many irrelevant hits or misses exactly the typos it was meant to catch.
-
Aug 26, 2025
Elasticsearch covers most use cases with declarative query building blocks, but some calculations cannot reasonably be squeezed into a fixed set of query clauses: a dynamic price calculation depending on several fields, a custom scoring formula, or a conditional update that reacts differently depending on the value already present. Painless exists for exactly these cases, a scripting language built specifically for Elasticsearch that runs inside a strict sandbox. This article covers the contexts where Painless gets used, the performance cost scripts carry compared to native query building blocks, and where the sandbox's deliberately drawn security boundaries sit.
-
Aug 24, 2025
Dynamic mapping saves a lot of configuration effort at the start, but with unpredictable input data it can quietly generate thousands of fields and bring a cluster to its knees. Teams that deploy dynamic false, dynamic strict and dynamic templates deliberately keep automatic field detection under control without giving up its benefits.