0Pricing
Elasticsearch & Full Text Search Systems · Lesson

Indexing Documents into Elasticsearch

Understand how to index single and multiple documents into an Elasticsearch index, including automatic ID generation and custom IDs.

What is Indexing?

Welcome to indexing! In Elasticsearch, indexing is the process of storing data into an index to make it searchable.

Think of it like adding a new book to a library's catalog. You provide the book's details, and the library stores them in a way that makes the book easy to find later.

Documents & Indices Refresher

Before we dive in, let's quickly recap two core concepts:

  • Document: A basic unit of information in Elasticsearch, similar to a row in a traditional database. It's usually a JSON object.
  • Index: A collection of documents that have similar characteristics. It's like a database in a relational world.

When you index, you add a document to an index.

All lessons in this course

  1. Indexing Documents into Elasticsearch
  2. CRUD Operations with Documents
  3. Basic Mapping and Data Types
  4. Bulk Indexing and the Bulk API
← Back to Elasticsearch & Full Text Search Systems