{"repo":"cakephp/elastic-search","free":true,"listed":false,"github":"https://github.com/cakephp/elastic-search","clone":"git clone https://github.com/cakephp/elastic-search.git","description":"Elastic search datasource for CakePHP","language":"PHP","stars":85,"topics":["elasticsearch","php","cakephp","cakephp-plugin"],"license":null,"category":"data-pipelines","readme_excerpt":"Elasticsearch Datasource for CakePHP Use Elastic Search as an alternative ORM backend in CakePHP 5.2+. You can find the documentation for the plugin in the Cake Book. Installing Elasticsearch via composer You can install Elasticsearch into your project using composer. For existing applications you can run: Versions Table Cake\\ElasticSearch CakePHP ElasticSearch Elastica --- --- --- --- 1.x 3.0 - 3.5 2.x - 5.x 5.x - 6.x 2.x 3.6+ 6.x 6.x 3, =3.4.0 4.0+ 7.x 7.x 4.x 5.0+ 7.x 7.x 5.x 5.2+ 9.x 9.x You are seeing the 5.x version. Connecting the Plugin to your Application After installing, you should tell your application to load the plugin: Defining a connection Before you can do any work with Elasticsearch models, you'll need to define a connection: As an alternative you could use a link format if you like to use enviroment variables for example. You can enable request logging by setting the log config option to true. By default the debug Log profile will be used. You can also define an elasticsearch log profile in Cake\\Log\\Log to customize where Elasticsearch query logs will go. Query logging is done at a 'debug' level. Getting a Index object Index objects are the equivalent of ORM\\Table instances in elastic search. You can use the IndexLocatorAwareTrait to get instances in your classes: Alternatively, you can use the IndexLocator directly: Note for upgrading users : The IndexRegistry class has been deprecated since version 3.4.3. If you're upgrading from an older version, replace","default_branch":null,"files":null,"tree":[],"storefront":"/r/cakephp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cakephp/elastic-search/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."}