Forum OpenACS Q&A: Simple search tool available for bboard module.

I've committed my resurrection of the original photo.net/ACS
bboard_contains hack.  This provides a simple keyword-based search
facility.

It is a stopgap measure only (I've been looking into both swish-e and
swish++ as well) but works OK.  I didn't try to be creative but rather
opted to recreate the old PL/SQL (Oracle) bboard_contains function
exactly.  You can hack on it further if you want to implement
phrase-based searching (by paying attention to the order in which
words appear in the target), etc.

I rewrote it in PL/Tcl, so you need to build Postgres with the
--with-tcl option.  You do not need to stop and restart the postmaster
after rebuilding and reinstalling Postgres with Tcl support (if you
don't have it built in already).  Just do a "creatlang pltcl" on your
acs database and things should work.  I decided to use PL/Tcl for this
because doing the string searches in PL/pgSQL would be awkward,
and each expression would run through the query executor, which would
be somewhat slow.  The PL/Tcl version is short and sweet, and should
be faster, too.

The simple Tcl function is in /doc/sql/rank-for-search.sql.  There's a
new parameter "UseOpenACSSearch" which turns on simple searching.
Just update your sources from CVS, psql -f rank-for-search.tcl, turn
on the above-mentioned param, restart AOLserver, and you're off to the
races.

Not very quickly, though - this requires a sequential search of the
bboard table (one reason why I consider this a stopgap measure only).
It is better than nothing, though!

great Don, thanx for your effort, this tool will help a lot to the end user of the bboards (and doesn't matter if it's a little bit slow, is better than nothing), you have given us a nice tool.

I'd love to see this implemented here on this openacs.org bboard. I consider the bboard a great resource. ex: "Where is that thread about back ups?". I'm sure it's just a matter of time...

Thank you. -Bob

Collapse
Posted by Ben Adida on
The community's wish is the site's command :) The bboard search is now implemented on OpenACS.org.
Looks like search is broken, I got the following when I tried to use it from http://www.openacs.org/bboard:
HTTP/1.0 500 Internal Server Error MIME-Version: 1.0 Date: Sun, 20 Aug 2000 21:54:11 GMT
       Server: AOLserver/3.0+ad2 Content-Type: text/html Content-Length: 277 Connection: close 

       Server Error


       The server encountered a configuration or operating system
       error while attempting to satisfy your request. 
It works from: http://new.openacs.org/bboard/q-and-a-search-form.tcl?topic_id=11&topic=OpenACS though so it's probably a simple configuration problem.
Collapse
Posted by Ben Adida on
small bug in the high-level search page. Fixed.
This is great Don. Thanks !