Dotclear

source: plugins/tsearch/README @ 135

Revision 135, 1.1 KB checked in by olivier, 16 years ago (diff)

Tsearch plugin. EXPERIMENTAL AND FOR POSTGRESQL ONLY!

RevLine 
[135]1TSearch for Dotclear
2====================
3
4--------------------------------------------------
5/!\ THIS PLUGIN DOES ONLY WORK WITH POSTGRESQL /!\
6--------------------------------------------------
7
8INSTALL
9=======
10
11Note: "dotclearDB" is your Dotclear database name.
12
13First, install tsearch2 for your postgresql installation. On debian, you should
14find it in postgresql-contrib package.
15
16As PostgreSQL super user, connect to your Dotclear database and launch
17tsearch2.sql file:
18
19postgres$ psql dotclearDB < tsearch2.sql
20
21Once tsearch schema is created on your database, you'll need some functions
22in public schema.
23
24First, add pl/pgsql language on your database (as postgres user):
25
26postgres$ createlang plpgsql dotclearDB
27
28Then, launch schema.sql file. Note that you need to adapt tables prefix if you
29changed it in your Dotclear installation:
30
31PLEASE READ THIS FILE FIRST!
32
33$ psql -U dotclearuser dotclearDB < schema.sql
34
35
36ENABLE TSEARCH IN YOUR CONFIGURATION FILE
37=========================================
38
39To enable tsearch, you need to add the following line in your config.php
40file:
41
42define('DC_TSEARCH_ACTIVE',true);
Note: See TracBrowser for help on using the repository browser.

Sites map