elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Using 1.2 package without Laravel?

Open jchatard opened this issue 7 years ago • 0 comments

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

jchatard avatar Aug 15 '17 12:08 jchatard