search::queue (public)

 search::queue [ -object_id object_id ] [ -event event ]

Defined in packages/search/tcl/search-procs.tcl

Add an object to the search_observer_queue table with an event. You should exercise care that the entry is not being created from a trigger (although search is robust for multiple entries so it will not insert or update the same object more than once per sweep).

Switches:
-object_id
(optional)
acs_objects object_id
-event
(optional)
INSERT or UPDATE or DELETE
Author:
Jeff Davis <davis@xarg.net>

Partial Call Graph (max 5 caller/called nodes):
%3 xowiki::Package instproc www-reindex xowiki::Package instproc www-reindex (public) search::queue search::queue xowiki::Package instproc www-reindex->search::queue ad_print_stack_trace ad_print_stack_trace (public) search::queue->ad_print_stack_trace package_exec_plsql package_exec_plsql (public) search::queue->package_exec_plsql

Testcases:
No testcase defined.
Source code:
    if {$object_id ne "" && $event ne "" } {
        package_exec_plsql  -var_list [list  [list object_id $object_id]  [list event $event] ]  search_observer enqueue
    } else {
        ns_log warning "search::queue: invalid: called with object_id=$object_id "  "event=$event\n[ad_print_stack_trace]"
    }
XQL Not present:
PostgreSQL
Generic XQL file:
<fullquery name="search::queue.insert">
    <querytext>
        insert into search_observer_queue (object_id, event_date, event) values (:object_id, current_timestamp, :event)
        </querytext>
</fullquery>
packages/search/tcl/search-procs.xql

Oracle XQL file:
packages/search/tcl/search-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: