Chapter 3. Putting Elasticsearch into Action

We have covered a lot of ground on Elasticsearch architecture, indexes, analyzers, and mappings. It's time to start learning about the indexing of data and the querying of Elasticsearch using its rich Query-DSL.

In this chapter, we will cover the following topics:

  • CRUD operations using the Elasticsearch Python client
  • CRUD operations using the Elasticsearch Java client
  • Creating a search database
  • Introducing Query-DSL
  • Search requests using Python
  • Search requests using Java
  • Sorting data
  • Document routing

CRUD operations using elasticsearch-py

Elasticsearch is written in Java but it is interoperable with non-JVM languages too. In this book, we will use its Python client, elasticsearch-py, as well as its Java client ...

Get Elasticsearch Essentials 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.