Index: openacs-4/packages/acs-core-docs/www/install-full-text-search.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/install-full-text-search.html,v diff -u -r1.12 -r1.13 --- openacs-4/packages/acs-core-docs/www/install-full-text-search.html 19 Nov 2003 15:44:50 -0000 1.12 +++ openacs-4/packages/acs-core-docs/www/install-full-text-search.html 11 Dec 2003 23:08:46 -0000 1.13 @@ -1,6 +1,6 @@ -
If you want full text search, and you are running PostGreSQL, install this module to support FTS. Do this step after you have installed both PostGreSQL and - Aolserver. You will need the openfts - tarball in /tmp.
Install Tsearch. This is a PostGreSQL module that +
If you want full text search, and you are running PostgreSQL, install this module to support FTS. Do this step after you have installed both PostgreSQL and + AOLserver. You will need the openfts + tarball in /tmp.
Install Tsearch. This is a PostgreSQL module that OpenFTS requires.
[root@yourserver root]# su - postgres
[postgres@yourserver pgsql]$ cd /usr/local/src/postgresql-7.2.4/contrib/tsearch/
[postgres@yourserver tsearch]$ make
@@ -17,11 +17,11 @@
logout
[root@yourserver root]#
-su - postgres
+su - postgres
cd /usr/local/src/postgresql-7.2.4/contrib/tsearch
make
make install
-exit
Unpack the OpenFTS tarball and compile and install +exit
Unpack the OpenFTS tarball and compile and install the driver.
[root@yourserver root]# cd /usr/local/src
[root@yourserver src]# tar xzf /tmp/Search-OpenFTS-tcl-0.3.2.tar.gz
[root@yourserver src]# cd /usr/local/src/Search-OpenFTS-tcl-0.3.2/
@@ -44,15 +44,15 @@
n_stem.o italian_stem.o norwegian_stem.o portuguese_stem.o russian_stem.o nsfts.o -o nsfts.so
[root@yourserver aolserver]# cp nsfts.so /usr/local/aolserver/bin/
[root@yourserver aolserver]#
-cd /usr/local/src
+cd /usr/local/src
tar xzf /tmp/Search-OpenFTS-tcl-0.3.2.tar.gz
cd /usr/local/src/Search-OpenFTS-tcl-0.3.2/
./configure --with-aolserver-src=/usr/local/src/aolserver/aolserver --with-tcl=/usr/lib/
make
cd aolserver
make
cp nsfts.so /usr/local/aolserver/bin
-
Build some supplemental modules.
[root@yourserver aolserver]# cd /usr/local/src/Search-OpenFTS-tcl-0.3.2 +
Build some supplemental modules.
[root@yourserver aolserver]# cd /usr/local/src/Search-OpenFTS-tcl-0.3.2
[root@yourserver Search-OpenFTS-tcl-0.3.2]# cp -r pgsql_contrib_openfts /usr/local/src/postgresql-7.2.4/contrib
[root@yourserver Search-OpenFTS-tcl-0.3.2]# cd /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts
[root@yourserver pgsql_contrib_openfts]# make
@@ -67,15 +67,15 @@
/bin/sh ../../config/install-sh -c -m 644 ./README.openfts /usr/local/pgsql/doc/contrib
[postgres@yourserver pgsql_contrib_openfts]$ exit
[root@yourserver pgsql_contrib_openfts]#
-cd /usr/local/src/Search-OpenFTS-tcl-0.3.2
+cd /usr/local/src/Search-OpenFTS-tcl-0.3.2
cp -r pgsql_contrib_openfts /usr/local/src/postgresql-7.2.4/contrib
cd /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts
make
su postgres
make install
-exit
If you are installing Full Text Search, add required packages to the new database. (In order for full text search - to work, you must also install the PostGreSQL + to work, you must also install the PostgreSQL OpenFTS module and prerequisites.)
[service0@yourserver service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/tsearch/tsearch.sql
BEGIN
CREATE
@@ -86,8 +86,8 @@
CREATE
CREATE
[service0@yourserver service0]$
-/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/tsearch/tsearch.sql
-/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts/openfts.sql
If you have installed OpenFTS, you can enable it for this service. Uncomment this line from config.tcl. (To uncomment a line in a tcl file, remove the # at the beginning of the line.)
#ns_param nsfts ${bindir}/nsfts.so
Click Package Manager on the right side of the default home page. If prompted, log in with the account and password you entered during install.
Click on the Install +/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/tsearch/tsearch.sql +/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts/openfts.sql
If you have installed OpenFTS, you can enable it for this service. Uncomment this line from config.tcl. (To uncomment a line in a tcl file, remove the # at the beginning of the line.)
#ns_param nsfts ${bindir}/nsfts.so
Click Package Manager on the right side of the default home page. If prompted, log in with the account and password you entered during install.
Click on the Install packages link.
On the next screen, after it loads, click on Uncheck all boxes, then click the checkbox next to OpenFTS Driver 4.2. Then click .
Click
Restart the service.
[service0@yourserver service0]$ svc -t /service/service0
[service0@yourserver service0]$
Wait a minute, then browse back to the home page.
Click on Site Map on the top right side of the screen.
Mount the OpenFTS Full Text Search Engine in the site map.
Click the new sub folder link on the "/" line, the first line under Main Site:/.
Type openfts and click
.On the new openfts line, click the mount link.
Click OpenFTS