Index: openacs-4/packages/search/tcl/search-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/tcl/search-procs.tcl,v diff -u -r1.26 -r1.26.2.1 --- openacs-4/packages/search/tcl/search-procs.tcl 30 Mar 2005 15:00:53 -0000 1.26 +++ openacs-4/packages/search/tcl/search-procs.tcl 5 Oct 2005 15:59:29 -0000 1.26.2.1 @@ -247,3 +247,68 @@ } } + +ad_proc -callback search::datasource { + -object_id:required +} { + This callback is invoked by the search indexer when and object is + indexed for search. The datasource implementation name should be + the object_type for the object. +} - + + +ad_proc -callback search::index { + -object_id:required + -content:required + -title:required + -description + -keywords +} { + This callback is invoked by the search indexer. It will dispatch + to the full text search engine. Additional optional paramters may + be added to support additional features of full text search engines. +} - + +ad_proc -callback search::search { + -query:required + -user_id + {-offset 0} + {-limit 10} + {-df ""} + {-dt ""} +} { + This callback is invoked when a search is to be performed. Query + will be a list of lists. The first list is required and will be a + list of search terms to send to the full text search + engine. Additional optional lists will be a two element list. THe + first element will be the name of an advanced search operator. The + second element will be a list of data to restrict search results + based on that operator. +} - + +ad_proc -callback search::unindex { + -object_id:required +} { + This callback is invoked to remove and item from the search index. +} - + +ad_proc -callback search::url { + -object_id:required +} { + This callback is invoked when a URL needs to be generated for an + object. Usually this is called from /o.vuh which defers URL + calculation until a link is actually clicked, so generating a list + of URLs for various object types is quick. +} - + +ad_proc -callback search::index { + -object_id + -content + -title + -keywords + {-datasource ""} + {-package_id ""} +} { + This callback is invoked from the search::indexer scheduled procedure + to add an item to the index +} -