elasticsearch
elasticsearch copied to clipboard
Using 1.2 package without Laravel?
Hi, I just updated from 1.1 to 1.2 and now I get this error message while running a query.
Thing to note, is that I'm using your package in a Drupal 8 env, not Laravel.
Error: Call to undefined function Basemkhirat\Elasticsearch\config() in Basemkhirat\Elasticsearch\Model->getConnection() (line 89 of foo/bar/drupal/vendor/basemkhirat/elasticsearch/src/Model.php).
Of course, the global function config()
does not exist in my env.
Is using Model required now? How can I set a default connection.
Thanks, Jérémy