Skip to content

Commit

Permalink
Updating schema section added in Elasticsearch docs (#2342)
Browse files Browse the repository at this point in the history
* Updating schema added in Elasticsearch docs

* Fix

* info added

* Line added
  • Loading branch information
julitafalcondusza authored Mar 27, 2024
1 parent fc2958d commit e68085b
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,22 @@ Start with the [Set up Elasticsearch](https://www.elastic.co/guide/en/elasticsea

**Prerequisite**

To proceed you need to be familiar with how indexing, filtering and queries work.
To proceed you need to be familiar with how indexing, filtering and queries work.

## Update Elasticsearch schema

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:

```bash
curl --request DELETE 'https://elasticsearch:9200/_all'
```

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
```

0 comments on commit e68085b

Please sign in to comment.