Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml,v
diff -u -r1.9.2.5 -r1.9.2.6
--- openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml 15 Dec 2003 14:29:16 -0000 1.9.2.5
+++ openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml 6 Jan 2004 14:02:48 -0000 1.9.2.6
@@ -456,6 +456,9 @@
Install Full Text Search
+
+ By Joel Aufrecht and Malte Sussdorff
+ Install OpenFTS module
@@ -470,7 +473,7 @@
Install Tsearch. This is a PostgreSQL module that
OpenFTS requires.[root root]# su - postgres
-[postgres pgsql]$ cd /usr/local/src/postgresql-7.2.4/contrib/tsearch/
+[postgres pgsql]$ cd /usr/local/src/postgresql-7.3.4/contrib/tsearch/
[postgres tsearch]$ make
sed 's,MODULE_PATHNAME,$libdir/tsearch,g' tsearch.sql.in >tsearch.sql
/usr/bin/flex -8 -Ptsearch_yy -o'parser.c' parser.l(many lines omitted)
@@ -486,7 +489,7 @@
[root root]#
su - postgres
-cd /usr/local/src/postgresql-7.2.4/contrib/tsearch
+cd /usr/local/src/postgresql-7.3.4/contrib/tsearch
make
make install
exit
@@ -529,8 +532,8 @@
Build some supplemental modules.[root aolserver]# cd /usr/local/src/Search-OpenFTS-tcl-0.3.2
-[root Search-OpenFTS-tcl-0.3.2]# cp -r pgsql_contrib_openfts /usr/local/src/postgresql-7.2.4/contrib
-[root Search-OpenFTS-tcl-0.3.2]# cd /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts
+[root Search-OpenFTS-tcl-0.3.2]# cp -r pgsql_contrib_openfts /usr/local/src/postgresql-7.3.4/contrib
+[root Search-OpenFTS-tcl-0.3.2]# cd /usr/local/src/postgresql-7.3.4/contrib/pgsql_contrib_openfts
[root pgsql_contrib_openfts]# make
sed 's,MODULE_PATHNAME,$libdir/openfts,g' openfts.sql.in >openfts.sql
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I. -I../../src/include -c -o openfts.o openfts.c
@@ -544,8 +547,8 @@
[postgres pgsql_contrib_openfts]$ exit
[root pgsql_contrib_openfts]#
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
+cp -r pgsql_contrib_openfts /usr/local/src/postgresql-7.3.4/contrib
+cd /usr/local/src/postgresql-7.3.4/contrib/pgsql_contrib_openfts
make
su postgres
make install
@@ -565,18 +568,18 @@
to work, you must also install the PostgreSQL
OpenFTS module and prerequisites.)
- [service0 service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/tsearch/tsearch.sql
+ [service0 service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.3.4/contrib/tsearch/tsearch.sql
BEGIN
CREATE
(many lines omitted)
INSERT 0 1
COMMIT
-[service0 service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/pgsql_contrib_openfts/openfts.sql
+[service0 service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.3.4/contrib/pgsql_contrib_openfts/openfts.sql
CREATE
CREATE
[service0 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
+/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.3.4/contrib/tsearch/tsearch.sql
+/usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.3.4/contrib/pgsql_contrib_openfts/openfts.sql
@@ -589,26 +592,35 @@
Install Full Text Search Engine
- 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 Admin on the top of the default home page. If prompted, log in with the account and password you entered during install.Click on the Install
-packages link.
+software 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 Next.
-
- Click Install Packages
-
+ Click on the Install
+new service link.
+
+
+ Click on the Install link next to OpenFTS Driver.
+
+
Restart the service.[service0 service0]$ svc -t /service/service0
[service0 service0]$Wait a minute, then browse back to the home page.
- Click on Site Map on the top right side of the screen.
+ Click on Admin on the top of the screen.
+
+ Click on Main Site Administration in the "Subsite Administration" section.
+
+
+ Click on Site Map in the "Advanced Features" section.
+ Mount the OpenFTS Full Text Search Engine in the site map.
@@ -662,10 +674,8 @@
Add the FTS Engine service contract
- Click on the Main
-Site.
- Click on the ACS
-Service Contract link near the bottom of the home page.
+ Click on the DevAdmin.
+ Click on the Service Contract link. On the FtsEngineDriver
line, click
Install.
@@ -677,11 +687,49 @@
[service0 service0]$ svc -t /service/service0
[service0 service0]$
-
- Test FTS. (INCOMPLETE). Add a package that supports search,like "note," add some content, and search for it.
-
+
+ Enable Full Text Search in packages
+ Enabling Full Text Search in packages at the moment is not trivial. It involves a couple of steps, which I will illustrate taking lars-blogger as an example package
+
+
+ Install the package.
+
+
+ Click Admin on the top of the default home page. If prompted, log in with the account and password you entered during install.
+
+
+ Click on the Install
+ software link.
+
+
+ Click on the Install
+ new application link.
+
+
+ Click on the Install link next to Weblogger.
+
+
+ Install all required packages as well (always say okay until you shall restart the server)
+
+
+
+
+
+ Load the service contracts datamodell and enable the service contract
+ [service0 service0]$ cd packages/lars-blogger/sql/postgresql
+[service0 postgresql]$ psql service0 -f lars-blogger-sc-create.sql
+Note: Usually this script is called package_name-sc-create.sql
+
+
+ Restart the service.
+ [service0 postgresql]$ svc -t /service/service0
+ [service0 postgresl]$
+
+
+ If you are lucky, Full Text Search is enabled now, if not consult http://openacs.org/forums/message-view?message_id=154759. This link also contains some hints on how to make sure it is enabled.
+