Skip to content

new TNTGeoIndexer expects engine #306

@SanderVanCamp

Description

@SanderVanCamp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions