ElasticSearch usage summary (1)

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.
    write picture description here
    The index is
    write picture description here
    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.
    write picture description here
    The unstructured index and the structured index mapping keywords
    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.
write picture description here
write picture description here

Guess you like

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