Performing requests

The high-level library provides a wrapper class around each specific API and uses the low-level client to send out the request. In the following tables, we cover those wrapper class that we are interested in and that are within the scope of this book:

API

Wrapper class

Methods supported

Indices

Index

analyze(), analyzer(), aliases(), create(), refresh(), flush(), get(), open(), close(), delete(), exists(), put_mapping(), get_mapping(), get_field_mapping(), put_alias(), get_alias(), exists_alias(), delete_alias(), put_settings(), get_settings(), clear_cache(), flush_synced(), forcemerge(), shrink(), stats(), updateByQuery(), validate_query()

Document

Document

delete(), upgrade(), save(), search() ...

Get Advanced Elasticsearch 7.0 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.