Databases 5 min read

Introduction to Elasticsearch: Core Concepts, Use Cases, and Practical Operations

This article introduces Elasticsearch by explaining its core concepts such as indices, types, documents, mappings, and Query DSL, demonstrates common use cases, and provides step‑by‑step instructions for creating, updating, viewing, and deleting indices and documents using RESTful APIs, curl commands, and Docker‑compose deployment.

360 Quality & Efficiency
360 Quality & Efficiency
360 Quality & Efficiency
Introduction to Elasticsearch: Core Concepts, Use Cases, and Practical Operations

Elasticsearch is presented as a powerful search engine, with its basic concepts compared to relational databases: an index resembles a MySQL database, a type a table, a document a row, mapping a schema, and its Query DSL a JSON‑based SQL.

The article outlines typical application scenarios and then details common index operations: creating an index with PUT http://ip:port/索引值, updating its mapping via PUT http://ip:port/索引值/_mapping/vulnerability, viewing the mapping using GET http://ip:port/索引值/_mapping?pretty, and deleting an index with DELETE http://ip:port/索引值. Screenshots illustrate each step in Kibana.

Document management is covered next: adding a document through PUT http://localhost:9200/索引值/vulnerability/文档ID, viewing the inserted data in Kibana, and performing simple searches using the Query DSL (details to be expanded in future articles).

For bulk operations, the author demonstrates using curl commands within shell scripts, including authentication with the --user flag, to insert large volumes of test data.

The deployment guide shows how to run Elasticsearch and Kibana locally with Docker. It references the official Docker installation guide and provides a concise Docker‑Compose workflow: creating a docker-compose.yml file, then starting the services with docker-compose up -d. Images depict the configuration and running containers.

Overall, the article serves as a practical introduction to Elasticsearch, covering its architecture, RESTful API usage, document handling, and containerized deployment.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Dockerindexingsearch engineElasticsearchMappingREST APICRUD
360 Quality & Efficiency
Written by

360 Quality & Efficiency

360 Quality & Efficiency focuses on seamlessly integrating quality and efficiency in R&D, sharing 360’s internal best practices with industry peers to foster collaboration among Chinese enterprises and drive greater efficiency value.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.