Learn Elasticsearch

Tram Ho

1. Index parameters

2. Add data to index

From Elastic search 6.x, 7x , each index can only have one type and each document needs to have an _id and _type value taken from the URL format that we send or the information will be randomly initialized , id can be numbers or letters.

Data format structure:

Let’s pass the data together

3. Check the index

4. Open/Close index

If there is a requirement to change the data maintenance configuration of an index or change the configuration of an index we can close the index (close) so that read/write operations cannot be performed on that index.

5. Read data from index

6. Update parameters

If you want to update the parameters of an index such as the number of primary shards/replica,… you can do the following:

First, close the index , then update the index and open it again



Test:
Share the news now

Source : Viblo