An advanced open source fulltext indexing package available from: http://www.xapian.org
It includes bindings for some scripting languages including a SWIG generated Tcl binding, properly packaged as a stubs enabled Tcl package since version 0.8.4.
(EMJ) To use the current release, you need http://www.oligarchy.co.uk/xapian/1.0.6/xapian-core-1.0.6.tar.gz and http://www.oligarchy.co.uk/xapian/1.0.6/xapian-bindings-1.0.6.tar.gz . In the latter, two fixes are needed:
* Edit configure, changing
TCL_LIB=`echo 'foreach d $tcl_pkgPath {if {!regexp {/share(/|$)} $d} {break}};puts $d'|$TCLSH`
to
TCL_LIB=`echo 'foreach d $tcl_pkgPath {if {![regexp {/share(/|$)} $d]} {break}};puts $d'|$TCLSH`
* Edit tcl8/Makefile.in, changing
tcllibdir = @TCL_LIB@/../xapian@VERSION@
to
tcllibdir = @TCL_LIB@/xapian@VERSION@
schlenk This could be a base for a very nice search engine to be added to tclhttpd or rivet for example. Or maybe even as an additional search engine for the wiki?
CMcC if you use a metakit store for the pages, you can just use the select -keyword option and get fulltext search aka KWIC