Forum OpenACS Q&A: Full Text Search

Collapse
Posted by Robert Hammond on
Here >is >a >detailed >dump >of >what >took >place >at >the >time >of >the >error, >which >may >assist >a >programmer >in >tracking >down >the >problem:

can'>t >read ">url_advanced_search": >no >such >variable
>while >executing
">lang::>util::>localize ${>url_advanced_search}"
>invoked >from >within
">ad_quotehtml [>lang::>util::>localize ${>url_advanced_search}]"
>invoked >from >within
">append >__adp_output "
<>form >method=>GET >action=>search>
<>small>
<>a >href=[>ad_quotehtml [>lang::>util::>localize ${>url_advanced_search}]]>[>template::>ex..."
(">uplevel" >body >line >7)
>invoked >from >within
">uplevel {
>set >__adp_output ""

>set >__adp_master [>template::>util::>url_to_file "[>ad_parameter ->package_id [>ad_conn >subsite_id] >DefaultMaster ..."
(>procedure ">template::>code::>adp::/>var/>lib/>aolserver/>tangosantacruz/>packa..." >line >2)
>invoked >from >within
">template::>code::${>template_extension}::$>__adp_stub"
(>procedure ">template::>adp_parse" >line >68)
>invoked >from >within
">template::>adp_parse [>file >root [>ad_conn >file]] {}"
(>procedure ">adp_parse_ad_conn_file" >line >5)
>invoked >from >within
"$>handler"
(">uplevel" >body >line >2)
>invoked >from >within
">uplevel $>code"
>invoked >from >within
">ad_try {
$>handler
} >ad_script_abort >val {
# >do >nothing
}"
>invoked >from >within
">rp_serve_concrete_file [>ad_conn >file]"
(>procedure ">rp_serve_abstract_file" >line >60)
>invoked >from >within
">rp_serve_abstract_file "$>root/$>path""
(">uplevel" >body >line >2)
>invoked >from >within
">uplevel $>code"
>invoked >from >within
">ad_try {
>rp_serve_abstract_file "$>root/$>path"
>set >tcl_url2file([>ad_conn >url]) [>ad_conn >file]
>set >tcl_url2path_info..."
Collapse
2: Re: Full Text Search (response to 1)
Posted by Robert Hammond on
Ooops, a little difficulty with the input form accepting the < sign.

* Had to change all < signs to > for the post to be accepted (is there a better way?)*

This should have prepended the post:

I have NEVER been able to properly configure FTS. Can anyone help with this server output?

I have installed both tsearch2 and Search-OpenFTS-tcl-0.3.2 "according to the instructions" only it was after the site was up and running. I stopped all running nsd's, restarted postgres, then after doing the "make installs", ran the appropriate psql commands:

/usr/local/pgsql/bin/psql $OPENACS_SERVICE_NAME -f \
/usr/local/src/postgresql-7.4.7/contrib/tsearch2/tsearch2.sql

/usr/local/pgsql/bin/psql $OPENACS_SERVICE_NAME -f \
/usr/local/src/postgresql-7.4.7/contrib/pgsql_contrib_openfts/openfts.sql

They worked without complaining.

FtsEngineDriver not available!HTTP/1.0 500 Internal Server Error Server: AOLserver/4.0 MIME-Version: 1.0 Date: Tue, 07 Mar 2006 16:24:22 GMT Content-Type: text/html; charset=utf-8 Content-Length: 6487 Connection: close

Collapse
3: Re: Full Text Search (response to 1)
Posted by Jeff Lu on
Please check if you have tsearch2-driver as the FtsEngineDriver as the parameter for the search package.

Try to check if you have FtsContentProvider and FtsEngineDriver installed in your service contracts.

More info on this page:
https://openacs.org/doc/tsearch2-driver/