{"repo":"babenkoivan/elastic-adapter","free":true,"listed":false,"github":"https://github.com/babenkoivan/elastic-adapter","clone":"git clone https://github.com/babenkoivan/elastic-adapter.git","description":"An adaptor for official PHP Elasticsearch client","language":"PHP","stars":40,"topics":["elasticsearch","php","client","adapter"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Elastic Adapter --- Elastic Adapter is an adapter for the official PHP Elasticsearch client. It's designed to simplify basic index and document operations. Contents Compatibility Installation Configuration Index Management Document Management Point in Time Management Compatibility The current version of Elastic Adapter has been tested with the following configuration: PHP 8.2 Elasticsearch 9.x Laravel 12.x If your project uses older Elasticsearch, Laravel, or PHP version check the previous major version of the package. Installation The library can be installed via Composer: Configuration Elastic Adapter uses babenkoivan/elastic-client as a dependency. To change the client settings you need to publish the configuration file first: In the newly created config/elastic.client.php file you can define the default connection name and describe multiple connections using configuration hashes. Please, refer to the elastic-client documentation for more details. Index Management \\Elastic\\Adapter\\Indices\\IndexManager is used to manipulate indices. Create Create an index, either with the default settings and mapping: or configured according to your needs: Alternatively, you can create an index using raw input: Drop Delete an index: Put Mapping Update an index mapping using builder: or using raw input: Put Settings Update an index settings using builder: or using raw input: Exists Check if an index exists: Open Open an index: Close Close an index: Put Alias Create an alias: The same with ra","default_branch":null,"files":null,"tree":[],"storefront":"/r/babenkoivan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/babenkoivan/elastic-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}