xowiki::Package instproc www-reindex (public)
<instance of xowiki::Package> www-reindex
Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl
This web-callable method can be used to reindex all items of this package by adding all pages of this package to the search queue.
- Testcases:
- No testcase defined.
Source code: set id ${:id} set pages [::xo::dc list get_pages { select page_id,package_id from xowiki_page, cr_revisions r, cr_items ci, acs_objects o where page_id = r.revision_id and ci.item_id = r.item_id and ci.live_revision = page_id and publish_status = 'ready' and page_id = o.object_id and o.package_id = :id }] #:log "--reindex returns <$pages>" foreach page_id $pages { #search::queue -object_id $page_id -event DELETE search::queue -object_id $page_id -event INSERT } :returnredirect .XQL Not present: Generic, PostgreSQL, Oracle