contao/test — Issue #447: search index update possible for own extensions
Author: computino
Created: 2011-11-29 06:14:45+00:00
State: open
Labels: Feature, framework

I currently have the problem that neither changed events nor my own extensions which make use of the search engine can take enough influence on updating the search index. I tried deleting the matching entry in tl_search and all child entries at tl_search_index but still there are 2 problems:
- the search additionally created a tmp-file with the search results as serialized array which continues to list the deleted element.
- the new element cannot be added instantly to the search.

The latter is not that important, the index will be rebuild eventually (when? I could not really find it), but listing invalid entries is bad mojo for the user. In case of events the visitor just gets "invalid event id".

Would it be possible to add 2 new functions Search->removeFromIndex() and Search->addToIndex() which both get the URL to add/delete? Both should be usable within the core (for changed articles and pages, events etc.) and in third-party extensions.

Most of this is a feature request, not changing the index when an event gets updated may be a bug report.

--- _Originally created on January 24th, 2009, at 07:02pm (ID 447)_