1. What is ElasticSearch
- ElasticSearch is a full-text search engine with distributed multi-user capabilities based on Apache Lucene
- Elasticsearch is developed in Java and provides an easy-to-use RESTful web API.
- Easy horizontal expansion, supporting PB-level structured data or unstructured data processing.
2. The index creation
es names its own api in a restful style, and the action is determined by the http method.
The index is
created successfully. The boot here is our index. Pay attention to lowercase and no underscores. Each box is a es sharding, pay attention to the picture, the thick frame is the main shard, and the relatively thin frame is the backup. For example, the thin box 0 is the thick box 0.
The unstructured index and the structured index
mappings are empty, which is the unstructured index, and vice versa.
Create a structured index. Here, write json in the head plugin. It is very difficult to write json. psotman is recommended. psotman is an http simulator with a visual interface that can help us verify the json structure.