Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changed examples deleting Elasticsearch indices #2635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ 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:

```bash
php bin/console ibexa:elasticsearch:put-index-template --overwrite
php bin/console ibexa:reindex
```
```
5 changes: 3 additions & 2 deletions docs/update_and_migration/from_4.5/update_from_4.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use the command as in the following example:
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 content, use the following commands:
Expand Down
Loading