ElasticSearch-Perform addition, deletion, and modification of data in the index library

1. Add data to the index library

1. Use Postman to add data to the index library

View the added data in the header graphical visualization interface:

2. Use the compound query in the header graphical visualization interface to add data to the index library

View the added data in the header graphical visualization interface:

 

2. Delete a piece of data in the index library

1. Use Postman to delete the data with id 1 in the index library:

In the header graphical visualization interface, check whether the data with id 1 has been deleted:

2. Use the compound query in the header graphical visualization interface to delete the data with id 2 in the index library:

In the header graphical visualization interface, check whether the data with id 2 has been deleted:

 

3. Modify a piece of data in the index library

Let's first add a piece of data to the index library under the blog, so that we can do the following modification operation demonstration:

1. Use Postman to modify the data with id 1 in the index library:

In the header graphical visualization interface, check whether the data with id 1 has been modified:

2. Use the compound query in the header graphical visualization interface to modify the data with id 1 in the index library again:

In the header graphical visualization interface, check whether the data with id 1 has been modified again:

 

3. Query a piece of data in the index library

Let's first add a few pieces of data to the index library under the blog, so that we can do the next search operation demonstration:

1. Find the corresponding data according to _id:

Find the data whose _id is 3:

2. Query the corresponding data based on the keyword of a certain attribute

The query results are displayed directly under Postman:

 

3. Query the corresponding data according to the keyword of a certain attribute

The query results are displayed directly under Postman:

***The Chinese word segmenter will first split the string to be queried, if the data list to be queried contains the split keywords, the same data will be queried

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_42629433/article/details/83421554