Chapter 4. Basic Operations

In this chapter, we will cover the following recipes:

  • Creating an index
  • Deleting an index
  • Opening/closing an index
  • Putting a mapping in an index
  • Getting a mapping
  • Reindexing an index
  • Refreshing an index
  • Flushing an index
  • ForceMerge an index
  • Shrinking an index
  • Checking if an index or type exists
  • Managing index settings
  • Using index aliases
  • Rollover an index
  • 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 cover how to manage indices and perform operations on documents. In this chapter, we'll start discussing different operations on indices ...

Get Elasticsearch 5.x Cookbook - Third 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.