O'Reilly logo

Elasticsearch Server Second Edition by Marek Rogoziński, Rafał Kuć

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Searching Your Data

In the previous chapter, we learned how Elasticsearch indexing works, how to create our own mappings, and what data types we can use. We also stored additional information in our index and used routing, both default and nondefault. By the end of this chapter, we will have learned about the following topics:

  • Querying Elasticsearch and choosing the data to be returned
  • The working of the Elasticsearch querying process
  • Understanding the basic queries exposed by Elasticsearch
  • Filtering our results
  • Understanding how highlighting works and how to use it
  • Validating our queries
  • Exploring compound queries
  • Sorting our data

Querying Elasticsearch

So far, when we searched our data we used the REST API and a simple query or the GET request. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required