This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Operations
editOperations
editThis page contains the information you need to perform various Elasticsearch operations by using the Client.
This section is a crash-course overview of the client and its syntax. If you are familiar with Elasticsearch, you’ll notice that the methods are named just like REST endpoints.
You may also notice that the client is configured in a manner that facilitates
easy discovery via your IDE. All core actions are available under the $client
object (indexing, searching, getting, etc). Index and cluster management are
located under the $client->indices()
and $client->cluster()
objects,
respectively.