QUESTION ElasticSearch - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: QUESTION ElasticSearch (/showthread.php?tid=7775) |
ElasticSearch - jwndev - 2015-12-17 Hello folks in this forum, I am thinking to develope a site using ElasticSearch and PHP code is ready and working. I want to refactor the code as a plugin of GetSimple. My question is: Where to put the ElasticSearch PHP client libraries. I use xampp. Here is my stuff: - Installation folder: c:\xampp\htdocs\getsimple - cmd to: c:\xampp\htdocs\getsimple\plugins - create a file: composer.json and put these lines: { "require": { "elasticsearch/elasticsearch": "~2.0" } } - curl -s http://getcomposer.org/installer | php - php composer.phar install --no-dev ElasticSearch PHP client libraries then are installed in: c:\xampp\htdocs\getsimple\plugins\vendor In my regular PHP code, I do in this way: require 'vendor/autoload.php'; // call the autoload use "Elasticsearch/ClientBuilder"; // use the ClientBuilder class file My question is: what are the correct ways to require/use the above 2 lines in GetSimple? Thanks in advance for any advice and suggestions, Best, jwn RE: ElasticSearch - jwndev - 2015-12-18 Never mind guys, I have figured it out myself. Elasticsearch on GetSimple! Thank you all GetSimple friends for developing such wonderful but simple CMS. Merry Christmas to you all!!! jwn |