From 0a103da9ba8794f34ac067f82a5231b6bf0f810d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 25 Feb 2025 14:30:57 +0100 Subject: [PATCH] Changed examples deleting Elasticsearch indices --- .../elasticsearch/elasticsearch_overview.md | 9 +++++---- docs/update_and_migration/from_4.5/update_from_4.5.md | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/search/search_engines/elasticsearch/elasticsearch_overview.md b/docs/search/search_engines/elasticsearch/elasticsearch_overview.md index f1222b9924..ebea24c7dc 100644 --- a/docs/search/search_engines/elasticsearch/elasticsearch_overview.md +++ b/docs/search/search_engines/elasticsearch/elasticsearch_overview.md @@ -24,11 +24,12 @@ To proceed you need to be familiar with how indexing, filtering and queries work Whenever you make any changes in case of variables (for example, environmental ones) or configuration files, you need to erase Elasticsearch index, update the schema, and rebuild the index. -To delete the index, you can use an HTTP request. -Use the command as in the following example: +To delete the index, use the [delete index REST API](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-delete-index.html). +Use the commands as in the following example: ```bash -curl --request DELETE 'https://elasticsearch:9200/_all' +curl --request DELETE 'https://elasticsearch:9200/default_location*' +curl --request DELETE 'https://elasticsearch:9200/default_content*' ``` To update the schema and then reindex the search, use the following commands: @@ -36,4 +37,4 @@ To update the schema and then reindex the search, use the following commands: ```bash php bin/console ibexa:elasticsearch:put-index-template --overwrite php bin/console ibexa:reindex -``` \ No newline at end of file +``` diff --git a/docs/update_and_migration/from_4.5/update_from_4.5.md b/docs/update_and_migration/from_4.5/update_from_4.5.md index b4b096f723..06d0269624 100644 --- a/docs/update_and_migration/from_4.5/update_from_4.5.md +++ b/docs/update_and_migration/from_4.5/update_from_4.5.md @@ -463,11 +463,12 @@ Restart Solr for `solrconfig.xml` changes to take effect. Elasticsearch schema's templates change, for example, with the addition of new features such as spellchecking. When this happens, you need to erase the index, update the schema, and rebuild the index. -To delete the index, you can use an HTTP request. +To delete the index, use the [delete index REST API](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-delete-index.html). Use the command as in the following example: ```bash -curl --request DELETE 'https://elasticsearch:9200/_all' +curl --request DELETE 'https://elasticsearch:9200/default_location*' +curl --request DELETE 'https://elasticsearch:9200/default_content*' ``` To update the schema, and then reindex the content, use the following commands: