In the previous chapter, we have discussed different aspects of search APIs. We started from using a simple URI search and request body search. We investigated the Query DSL to learn how to write high-quality queries. We practiced troubleshooting techniques with the Profile API, the Validate API, the Explain API, and completion suggested and completed a detailed example of search-as-you-type feature. Since we know how to search now, we need to step back and think about the design of data modeling. In this chapter, we will discuss data modeling when using Elasticsearch.
Elasticsearch is a distributed, document-oriented NoSQL database for storing, retrieving, and managing document-oriented or semi-structured data. Basically, a document is stored with minimal support for relationships between documents. This chapter focuses on some of most common...