tntsearch icon indicating copy to clipboard operation
tntsearch copied to clipboard

Update a geosearch index

Open romlob opened this issue 3 years ago • 1 comments

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 .

romlob avatar Dec 20 '22 17:12 romlob

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

piolet avatar May 02 '23 11:05 piolet