<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How-To Guides on Advanced Beginner</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/</link><description>Recent content in How-To Guides on Advanced Beginner</description><generator>Hugo</generator><language>en-US</language><managingEditor>d8lzz1gpw@mozmail.com (kimbenji)</managingEditor><webMaster>d8lzz1gpw@mozmail.com (kimbenji)</webMaster><lastBuildDate>Mon, 23 Mar 2026 19:08:15 +0900</lastBuildDate><atom:link href="https://advanced-beginner.github.io/en/docs/elasticsearch/howto/index.xml" rel="self" type="application/rss+xml"/><item><title>Slow Query Optimization</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/slow-query-optimization/</link><pubDate>Fri, 16 Jan 2026 00:00:00 +0000</pubDate><author>d8lzz1gpw@mozmail.com (kimbenji)</author><guid>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/slow-query-optimization/</guid><description>&lt;p&gt;Learn how to diagnose and improve slow search response times.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Duration&lt;/strong&gt;: Approximately 15-30 minutes&lt;/p&gt;
&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;Scope of This Guide&lt;/strong&gt;&lt;br&gt;&lt;p&gt;&lt;strong&gt;Covered&lt;/strong&gt;: Query-level performance optimization, Profile API analysis, cache utilization&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Not Covered&lt;/strong&gt;: Cluster-level tuning (adding nodes, hardware upgrades) - see &lt;a href="../concepts/performance-tuning/"&gt;Performance Tuning&lt;/a&gt;&lt;/p&gt;

&lt;/blockquote&gt;

&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;br&gt;&lt;ul&gt;
&lt;li&gt;Analyze query execution plans with &lt;strong&gt;Profile API&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Remove unnecessary fields&lt;/strong&gt;: &lt;code&gt;_source&lt;/code&gt; filtering, stored fields&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Optimize query types&lt;/strong&gt;: Use &lt;code&gt;term&lt;/code&gt; instead of &lt;code&gt;match&lt;/code&gt;, avoid leading wildcards&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Leverage caching&lt;/strong&gt;: Use filter context, enable request cache&lt;/li&gt;
&lt;/ul&gt;

&lt;/blockquote&gt;

&lt;hr&gt;
&lt;h2 id="before-you-begin"&gt;Before You Begin&lt;a class="anchor" href="#before-you-begin"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Verify the following requirements:&lt;/p&gt;</description></item><item><title>Memory Troubleshooting</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/memory-troubleshooting/</link><pubDate>Fri, 16 Jan 2026 00:00:00 +0000</pubDate><author>d8lzz1gpw@mozmail.com (kimbenji)</author><guid>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/memory-troubleshooting/</guid><description>&lt;p&gt;Learn how to diagnose and resolve OutOfMemoryError and GC issues.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Duration&lt;/strong&gt;: Approximately 20-40 minutes (additional 10 minutes for GC log analysis)&lt;/p&gt;
&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;Scope of This Guide&lt;/strong&gt;&lt;br&gt;&lt;p&gt;&lt;strong&gt;Covered&lt;/strong&gt;: Heap memory settings, Circuit Breaker, Field Data optimization, GC tuning&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Not Covered&lt;/strong&gt;: Adding nodes, hardware upgrades - see &lt;a href="../concepts/cluster-management/"&gt;Cluster Management&lt;/a&gt;&lt;/p&gt;

&lt;/blockquote&gt;

&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;br&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Heap memory&lt;/strong&gt;: 50% or less of total memory, maximum 31GB&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Circuit Breaker&lt;/strong&gt;: Check settings to prevent memory overuse&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Field data&lt;/strong&gt;: Avoid aggregations on text fields, use doc_values&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GC tuning&lt;/strong&gt;: Use G1GC, analyze logs to identify issues&lt;/li&gt;
&lt;/ul&gt;

&lt;/blockquote&gt;

&lt;hr&gt;
&lt;h2 id="before-you-begin"&gt;Before You Begin&lt;a class="anchor" href="#before-you-begin"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Verify the following requirements:&lt;/p&gt;</description></item><item><title>Mapping Migration</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/mapping-migration/</link><pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate><author>d8lzz1gpw@mozmail.com (kimbenji)</author><guid>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/mapping-migration/</guid><description>&lt;p&gt;This guide walks you through changing index mappings (field types, analyzers, etc.) without downtime.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Estimated time&lt;/strong&gt;: About 20-40 minutes (additional time may be required depending on data size)&lt;/p&gt;
&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;Scope of This Guide&lt;/strong&gt;&lt;br&gt;&lt;p&gt;&lt;strong&gt;Covers&lt;/strong&gt;: Zero-downtime mapping changes using the Reindex API, Alias switching strategy, and validation methods&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does not cover&lt;/strong&gt;: For large-scale index rebuilds, see &lt;a href="index-rebuild/"&gt;Index Rebuild&lt;/a&gt;. For cluster-level changes, see &lt;a href="cluster-scaling/"&gt;Cluster Scaling&lt;/a&gt;.&lt;/p&gt;

&lt;/blockquote&gt;

&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;br&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Alias-based operations&lt;/strong&gt;: Your application accesses indices through Aliases&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Create new index&lt;/strong&gt;: Create a new index with the updated mapping and Reindex&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Switch Alias&lt;/strong&gt;: After validation, switch the Alias to the new index&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rollback ready&lt;/strong&gt;: You can roll back instantly as long as you don&amp;rsquo;t delete the old index&lt;/li&gt;
&lt;/ul&gt;

&lt;/blockquote&gt;

&lt;hr&gt;
&lt;h2 id="before-you-begin"&gt;Before You Begin&lt;a class="anchor" href="#before-you-begin"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Verify the following prerequisites:&lt;/p&gt;</description></item><item><title>Index Rebuild</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/index-rebuild/</link><pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate><author>d8lzz1gpw@mozmail.com (kimbenji)</author><guid>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/index-rebuild/</guid><description>&lt;p&gt;This guide walks you through efficiently rebuilding large indices.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Estimated time&lt;/strong&gt;: About 30-60 minutes (may take several hours depending on data size)&lt;/p&gt;
&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;Scope of This Guide&lt;/strong&gt;&lt;br&gt;&lt;p&gt;&lt;strong&gt;Covers&lt;/strong&gt;: _reindex API, Snapshot/Restore, Logstash comparison, large-scale processing strategies, and performance optimization&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does not cover&lt;/strong&gt;: For simple mapping changes, see &lt;a href="mapping-migration/"&gt;Mapping Migration&lt;/a&gt;. For cluster scaling, see &lt;a href="cluster-scaling/"&gt;Cluster Scaling&lt;/a&gt;.&lt;/p&gt;

&lt;/blockquote&gt;

&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;br&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;_reindex API&lt;/strong&gt;: Simplest option, best for rebuilds within the same cluster&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Snapshot/Restore&lt;/strong&gt;: Best for cross-cluster migration and very large datasets&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Logstash&lt;/strong&gt;: Best for complex transformations or external source integration&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Performance optimization&lt;/strong&gt;: Use &lt;code&gt;refresh_interval: -1&lt;/code&gt;, replica 0, and sliced scroll&lt;/li&gt;
&lt;/ul&gt;

&lt;/blockquote&gt;

&lt;hr&gt;
&lt;h2 id="before-you-begin"&gt;Before You Begin&lt;a class="anchor" href="#before-you-begin"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Verify the following prerequisites:&lt;/p&gt;</description></item><item><title>Cluster Scaling</title><link>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/cluster-scaling/</link><pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate><author>d8lzz1gpw@mozmail.com (kimbenji)</author><guid>https://advanced-beginner.github.io/en/docs/elasticsearch/howto/cluster-scaling/</guid><description>&lt;p&gt;This guide walks you through safely scaling an Elasticsearch cluster.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Estimated time&lt;/strong&gt;: About 30-60 minutes (additional time for node addition and shard rebalancing)&lt;/p&gt;
&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;Scope of This Guide&lt;/strong&gt;&lt;br&gt;&lt;p&gt;&lt;strong&gt;Covers&lt;/strong&gt;: Adding data nodes, role-based node separation, Hot-Warm-Cold architecture, and post-scaling validation&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does not cover&lt;/strong&gt;: For query-level performance optimization, see &lt;a href="slow-query-optimization/"&gt;Slow Query Optimization&lt;/a&gt;. For memory issues, see &lt;a href="memory-troubleshooting/"&gt;Memory Troubleshooting&lt;/a&gt;.&lt;/p&gt;

&lt;/blockquote&gt;

&lt;blockquote class="book-hint info"&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;br&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Horizontal scaling&lt;/strong&gt;: Add data nodes and rebalance shards&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Role separation&lt;/strong&gt;: Separate master, data, coordinating, and ingest nodes for stability&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hot-Warm-Cold&lt;/strong&gt;: Tier nodes by data access frequency for cost optimization&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Post-scaling validation&lt;/strong&gt;: Always verify cluster status, shard distribution, and performance metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;/blockquote&gt;

&lt;hr&gt;
&lt;h2 id="before-you-begin"&gt;Before You Begin&lt;a class="anchor" href="#before-you-begin"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Verify the following prerequisites:&lt;/p&gt;</description></item></channel></rss>