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