Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 346d721

Browse files
bdenhammeker12
andauthored
[DOCS] MCLOUD-7322: Removing elasticsearch plugins from services.yaml (#8336)
* MCLOUD-7322 initial draft * MCLOUD-7322 updates based on conversation * MCLOUD-7322 updates based on conversation * MCLOUD-7322 updates based on review * Update src/cloud/project/services-elastic.md Co-authored-by: Margaret Eker <meker@adobe.com> * MCLOUD-7322 updates based on review Co-authored-by: Margaret Eker <meker@adobe.com>
1 parent ae2dbb7 commit 346d721

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

src/cloud/project/services-elastic.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ If you need to restart the [Elasticsearch](https://www.elastic.co) service, you
182182

183183
- After you set up the Elasticsearch service for your project, use the Magento Admin UI to test the Elasticsearch connection and customize Elasticsearch settings for {{ site.data.var.ee }}.
184184

185-
### Elasticsearch plugins
185+
### Add plugins for Elasticsearch
186186

187-
Optionally, you can add Elasticsearch plugins by adding the `configuration:plugins` section to the `.magento/services.yaml` file. For example, the following code enables the ICU analysis and Phonetic analysis plugins.
187+
Optionally, you can add plugins for Elasticsearch by adding the `configuration:plugins` section to the Elasticsearch service in the `.magento/services.yaml` file. For example, the following code enables the ICU analysis and Phonetic analysis plugins.
188188

189189
```yaml
190190
elasticsearch:
@@ -199,5 +199,38 @@ elasticsearch:
199199
If you use the ElasticSuite third-party plugin, you must [update the `{{site.data.var.ct}}` package]({{ site.baseurl }}/cloud/project/ece-tools-update.html) to version 2002.0.19 or later.
200200
When setting up ElasticSuite, add the configuration settings to the `ELASTICSUITE_CONFIGURATION` deploy variable. This configuration saves the settings across deployments.
201201

202+
### Remove plugins for Elasticsearch
203+
Removing the plugin entries from `elasticsearch:` in `.magento/services.yaml` does not uninstall or disable them as you might expect. You must take the additional step of reindexing your Elasticsearch data. This behavior is intentional to prevent possible loss or corruption of data that depends on these plugins.
204+
205+
**To remove Elasticsearch plugins:**
206+
207+
1. Remove the Elasticsearch plugin entries from your `.magento/services.yaml` file.
208+
1. Add, commit, and push your code changes.
209+
210+
```bash
211+
git add -A
212+
```
213+
214+
```bash
215+
git commit -m "Remove Elasticsearch plugin"
216+
```
217+
218+
```bash
219+
git push origin <branch-name>
220+
```
221+
222+
1. Commit the `.magento/services.yaml` changes to your Cloud repo.
223+
1. Reindex the Catalog Search index:
224+
225+
```bash
226+
bin/magento indexer:reindex catalogsearch_fulltext
227+
```
228+
229+
1. Clean the cache:
230+
231+
```bash
232+
bin/magento cache:clean
233+
```
234+
202235
{:.bs-callout-tip}
203236
For details on using or troubleshooting the Elasticsuite plugin with Magento, see the [Elasticsuite documentation](https://github.com/Smile-SA/elasticsuite).

0 commit comments

Comments
 (0)