ElasticSearch usage summary (2)

New data for the crud operation of the visualization tool postman data

people is the index, man is the type, 1 is the specified id,
write picture description here
you can modify the put to post, without specifying the id, es automatically writes the id for us and inserts the data
write picture description here

Modify document data

a) Modify document data directly
b) Modify through script The text
Modify the specified document id
to be modified is defined after the keyword doc

write picture description here
es supports a variety of script voices, comes with painless, supports js, python, etc. Here, the built-in painless
ctx is used to represent the es context, and ._source represents the current document of es.
Delete data
Specify id to delete
write picture description here
**Query data
write picture description here**
Simple query
Simple query
Conditional query

a): All queries
write picture description here
b): Aggregate queries are aggregated by the number of words, and aggregated by the publication date
write picture description here
c): The functions of es data processing
are powerful and flexible, and the learning cost is very low. After learning es, you can say that you have learned computer technology. Eighteen palms of subduing dragon
write picture description here
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325902695&siteId=291194637