Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update a geosearch index #276

Open
romlob opened this issue Dec 20, 2022 · 1 comment
Open

Update a geosearch index #276

romlob opened this issue Dec 20, 2022 · 1 comment

Comments

@romlob
Copy link

romlob commented Dec 20, 2022

how to update a geosearch index ? I try to use the same method for the simple index but it return me "SQLSTATE[HY000]: General error: 1 no such table: wordlist" I have no idea to solve this .

@piolet
Copy link

piolet commented May 2, 2023

I think we need to implement, in the TNTGeoIndexer, its own insert and delete methods. Currently, since it inherits from TNTIndexer, these 2 methods do as if they were in a classical indexer, so they manipulate your tables that don't exist

For example, the insert method could be like this :
public function insert($document) { $this->processDocument(new Collection($document)); }
to avoid the process linked to table total_documents .
In the same way, the delete method should juste delete row for table locations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants