Chapter 4. Basic Operations

In this chapter, we will cover:

  • Creating an index
  • Deleting an index
  • Opening/closing an index
  • Putting a mapping in an index
  • Getting a mapping
  • Deleting a mapping
  • Refreshing an index
  • Flushing an index
  • Optimizing an index
  • Checking if an index or type exists
  • Managing index settings
  • Using index aliases
  • Indexing a document
  • Getting a document
  • Deleting a document
  • Updating a document
  • Speeding up atomic operations (bulk operations)
  • Speeding up GET operations (multi GET)

Introduction

Before starting with indexing and searching in ElasticSearch, we need to learn how to manage indices and perform operations on documents. In this chapter, we'll discuss different operations on indices such as Create, Delete, Update, Read, and Open/Close. These operations ...

Get ElasticSearch Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.