Forum OpenACS Development: Problems with Search

Collapse
Posted by Nick Carroll on
Hi,

Search isn't working for me. I've been getting the error from a scheduled proc in search. Anybody else been getting this?

[16/Sep/2005:13:38:51][19947.147466][-sched:23-] Error: Undefined callback search::action
Undefined callback search::action
while executing
"error "Undefined callback $callback""
(procedure "callback" line 11)
invoked from within
"callback -catch search::action -action $event -object_id $object_id -datasource NONE -object_type {}"
("DELETE" arm line 8)
invoked from within
"switch -- $event {
UPDATE -
INSERT {
# Don't bother reindexing if we've already inserted/updated this object i..."
(procedure "search::indexer" line 15)
invoked from within
"search::indexer"
("eval" body line 1)
invoked from within
"eval [concat [list $proc] $args]"
(procedure "ad_run_scheduled_proc" line 42)
invoked from within
"ad_run_scheduled_proc {t f 30 search::indexer {} 1126841480 0 f}"

Collapse
2: Re: Problems with Search (response to 1)
Posted by Nick Carroll on
I've tracked down the problem.

In search/tcl/search-procs.tcl there is a proc called search::action that has been commented out. It is called in two places, and only one was commented out. The second was not commented out and was still calling search::action.

I commented out the second call to search::action and content on the site started to be indexed again. Should I submit this as a patch?

Collapse
3: Re: Problems with Search (response to 1)
Posted by Dave Bauer on
Nick,

I think it makes more sense to figure out why the callback isn't defined and fix it. What version of the search package are you using?

Collapse
4: Re: Problems with Search (response to 1)
Posted by Nick Carroll on
I'm using Search from HEAD.