In the previous chapter, we discussed how to model your data. In this chapter, we will discuss how to index and update your data. We will start by discussing how to index and what happens when you index a document. Elasticsearch is a near real-time system, meaning the data you index is available for search only after a small delay. We will discuss the reason for this delay and how we can control the delay. This chapter will also show you various ways to update your data and we will discuss what happens when you update a document and why updates are expensive.
In this chapter, we will cover the following:
- Indexing your data
- Updating your data
- Using Kibana to discover
- Using Elasticsearch in your application
- How Elasticsearch handles concurrency
- How primary and replica shards interact