Forum OpenACS Q&A: FTS for News - datasource(content) problem.

Openacs 4.6.1

I could get FTS working for the static pages and notes. But when I tried it for News I get following error message in log when search_indexer runs ..

I have installed following binding
* 8482 FtsContentProvider, 8567 news [Uninstall]

and have also tried installing with above one
* 8482 FtsContentProvider, 8227 news_item [Install]

Also, I can see entries for news object in search_observer_queue.

Any clue?
Thanks in advance.

-Kiran

-----------------------------------------------------
[04/Apr/2003:00:24:14][28585.2051][-sched-] Notice: Running scheduled proc search_indexer...
[04/Apr/2003:00:24:14][28585.2051][-sched-] Warning: ACS-SC: Function Not Found: AcsSc.FtsContentProvider.datasource.content_revision
[04/Apr/2003:00:24:14][28585.2051][-sched-] Error: can't read "datasource(content)": no such element in array can't read "datasource(content)": no such element in array
    while executing
"search_content_get txt $datasource(content) $datasource(mime) $datasource(storage_type)"
    ("INSERT" arm line 5)
    invoked from within
"switch $event {
            INSERT {
                set object_type [acs_object_type $object_id]
                if {[acs_sc_binding_exists_p FtsCont..."
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $code_block "
    ("1" arm line 1)
    invoked from within
"switch $errno {
                0 {
                    # TCL_OK
                }
                1 {
                    # TCL_ERROR
                    global errorInfo errorCode
                    error $error $errorInfo $errorCode
                }
                2 {
        ..."
    ("while" body line 20)
    invoked from within
"while { [db_getrow $db $selection] } {
            incr counter
            if { [info exists array_val] } {
                unset array_val
            }
            if { ![info exists column..."
    ("uplevel" body line 5)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle db {
        set selection [db_exec select $db $full_statement_name $sql]

        set counter 0
        while { [db_getrow $db $selection] } {
            incr co..."
    (procedure "db_foreach" line 35)
    invoked from within
"db_foreach search_observer_queue_entry {} {

        switch $event {
            INSERT {
                set object_type [acs_object_type $object_id]..."
    (procedure "search_indexer" line 5)
    invoked from within
"search_indexer"
    ("eval" body line 1)
    invoked from within
"eval [concat [list $proc] $args]"
    (procedure "ad_run_scheduled_proc" line 43)
    invoked from within
"ad_run_scheduled_proc {f f 30 search_indexer {} 1049428273 0 t}"
[04/Apr/2003:00:24:24][28585.429066][-sched:12-] Notice: Running scheduled proc acs_mail_lite::sweeper...

Collapse
Posted by tammy m on
Hi

I'm sorry I haven't used the News package. But it looks like the object in your search queue is looking for a content_revision FTSContentProvider that doesn't exist in your system. The News package provides it's own FTSContentProvider news__datasource proc.  Wait nevermind, all it does is call the content_revision datasource proc.

So you need to go to the ACS Service Contract page in your Site Map and load:
2257 FtsContentProvider, 927 content_revision [Uninstall]

That is what the News package is looking for.

Should work then, good luck:)