5 Working with documents
This chapter covers
- Indexing, retrieving, and reindexing documents
- Manipulating and tweaking responses
- Updating and deleting documents with APIs and query methods
- Working with scripted updates
- Indexing documents in bulk
It is time to work with and understand operations on documents in Elasticsearch. Documents are indexed, fetched, updated, or deleted based on our requirements. We can load data into Elasticsearch from stores such as databases and files or from real-time streams. Similarly, we can update or modify data that exists in Elasticsearch. If needed, we can even delete and purge documents. For example, we may have a product catalog database that needs to be imported into Elasticsearch to enable search capabilities ...
Get Elasticsearch in Action, Second 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.