February 2017
Intermediate to advanced
696 pages
12h 24m
English
We saw how to delete a document in the recipe Deleting a document in Chapter 4, Basic Operations. Deleting a document is very fast but it requires knowing the document ID.
Elasticsearch provides a call to delete all the documents that match a query via an additional module called reindex, which is installed by default.
You will need an up-and-running Elasticsearch installation as used in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To execute curl via a command-line you need to install curl for your operating system.
To correctly execute the following commands you will need an index populated with the chapter_05/populate_query.sh script available in the online code.
Read now
Unlock full access