Elasticsearch: Guides and Practical Know-how | Page 3 | mironsoft Blog
Elasticsearch
-
Jan 23, 2026
An exact count of unique values across billions of documents would be nearly impossible to justify in terms of memory. The cardinality aggregation solves this problem with the HyperLogLog++ algorithm, which approximates the number of unique values with constant, very small memory usage instead of remembering every value individually. The precision_threshold parameter decides how tightly accuracy and memory usage are coupled, and this article shows when the resulting error rate is completely unproblematic from a business perspective.
-
-
Jan 14, 2026
A hot-warm-cold architecture distributes data by age across hardware of varying performance and cost, driven by automated index lifecycle management policies. Fresh, frequently queried data sits on fast SSD hardware, older data automatically migrates to cheaper nodes, without anyone intervening manually.
-
Jan 8, 2026
A rolling upgrade updates an Elasticsearch or OpenSearch cluster node by node, while the cluster keeps serving requests the entire time. Anyone who correctly disables shard allocation before every node restart and respects the version compatibility rules between major versions can move production clusters to a new version without any planned downtime.
-
Jan 3, 2026
As soon as a product has multiple variants with their own size, color and price, classic aggregation fails silently and miscounts. The nested aggregation operates on a separate, isolated Lucene index inside the parent document, which yields correct facets at variant level. With reverse_nested you can additionally jump back into the parent context to build facets that correctly connect both variant and product level.
-
Dec 28, 2025
Anyone who creates new indices for logs, metrics or orders every day knows the problem: without a central definition, mappings and settings drift apart until queries return inconsistent results. Composable index templates and reusable component templates solve exactly that by defining mapping rules once and applying them automatically to every new index that matches a naming pattern.
-
Dec 25, 2025
A type-ahead field that fires a new query at Elasticsearch on every keystroke can put a cluster under real load long before the actual result index is even large. search_as_you_type provides the data structure for performant prefix matching, but only the right combination of query design, shard distribution and frontend debouncing turns it into a search that stays stable under load.
-
Dec 9, 2025
Anyone setting up a dense_vector field for the first time usually picks the vector dimension based on whatever the chosen embedding model happens to output, without questioning the actual memory and performance cost. On a small test catalog that barely shows, but at several million products across several languages, the cost per vector quickly adds up to a noticeable infrastructure problem. Dimension choice, quantization strategy, and HNSW graph parameters are tightly coupled and together determine memory footprint, indexing speed, and search quality. This article covers which trade-offs in dimension choice actually matter, how int8 and int4 quantization save memory without making search quality unusable, and how indexing speed for large product catalogs can be improved in practice.
-
Nov 21, 2025
A single, unbounded, endlessly growing index is rarely the right answer to a continuous stream of incoming data. The rollover API solves that by transparently switching a write alias over to a new physical index once defined conditions such as size, document count or age are met. Configured correctly, the application never notices, it keeps writing against the same alias while new, manageable indices continue forming in the background.
-
Nov 16, 2025
Magento's default relevance treats every attribute by the same rules, regardless of whether a search request looks for SKU, brand, or description. Deliberately controlling search relevance via search weight, custom query builders, and function score boosting brings the products that actually matter for a given shop to the top.