-
-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Description
The documentation specifies:
$candyShopIndexer = new TNTGeoIndexer;
However, this expects an engine. I have tried playing around with the options, but either I get the result 'no such table: wordlist ' or 'no such table: locations'. Anyone who can help?
My full code:
`$tnt = new TNTGeoSearch();
$configuration = $this->municipalitiesManager->getTNTSearchConfiguration();
$tnt->loadConfig($configuration);
$tnt->createIndex('geo.index');
$candyShopIndexer = new TNTGeoIndexer($tnt->engine);
$candyShopIndexer->loadConfig($configuration);
$candyShopIndexer->createIndex('geo.index');
$candyShopIndexer->query('SELECT id, longitude, latitude FROM municipality;');
$candyShopIndexer->run();`
Metadata
Metadata
Assignees
Labels
No labels