summaryrefslogtreecommitdiff
path: root/postgres/french/create.sql
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-01 13:22:03 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-01 13:22:03 +0100
commit5e60dee2915902be21cf2bd22df00f8256e2bca3 (patch)
tree4f34c0412fa8aa83812ea6ffe48c48ef7fe893e2 /postgres/french/create.sql
parent6cf86374a48ab080f5dfd91ea53cd090a783744e (diff)
downloadIshtar-5e60dee2915902be21cf2bd22df00f8256e2bca3.tar.bz2
Ishtar-5e60dee2915902be21cf2bd22df00f8256e2bca3.zip
Free text search: add french_archeo thesaurus config
Diffstat (limited to 'postgres/french/create.sql')
-rw-r--r--postgres/french/create.sql23
1 files changed, 23 insertions, 0 deletions
diff --git a/postgres/french/create.sql b/postgres/french/create.sql
new file mode 100644
index 000000000..4f1b9ee0e
--- /dev/null
+++ b/postgres/french/create.sql
@@ -0,0 +1,23 @@
+DROP TEXT SEARCH CONFIGURATION IF EXISTS french_archeo;
+DROP TEXT SEARCH DICTIONARY IF EXISTS thesaurus_french_archeo;
+
+
+CREATE TEXT SEARCH CONFIGURATION french_archeo (
+ COPY = french
+);
+
+ALTER TEXT SEARCH CONFIGURATION french_archeo
+ DROP MAPPING FOR hword_asciipart;
+ALTER TEXT SEARCH CONFIGURATION french_archeo
+ DROP MAPPING FOR hword_part;
+
+
+CREATE TEXT SEARCH DICTIONARY thesaurus_french_archeo (
+ TEMPLATE = thesaurus,
+ DictFile = thesaurus_french_archeo,
+ Dictionary = pg_catalog.simple
+);
+
+ALTER TEXT SEARCH CONFIGURATION french_archeo
+ ALTER MAPPING FOR asciihword, asciiword, hword, word
+ WITH thesaurus_french_archeo, french_stem;