From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Mohammed falih <moh(dot)falih98(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: i added Arabic Dictionary but how I know i'm using it |
Date: | 2022-08-17 15:59:24 |
Message-ID: | 3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 2022-08-17 at 14:33 +0300, Mohammed falih wrote:
> I created the dictionary by this query
> CREATE TEXT SEARCH DICTIONARY arabic_dict (
> TEMPLATE = ispell,
> DictFile = th_ar,
> AffFile = th_ar,
> Stopwords = arabic);
> and as you know the purpose in dictionary is like when you're searching for an
> example a "house" the results will also retrieve a records with "home" because
> it's a synonymous but when I run queries nothing happens
That would be a "synonym dictionary":
https://www.postgresql.org/docs/current/textsearch-dictionaries.html#TEXTSEARCH-SYNONYM-DICTIONARY
An Ispell dictionary normalizes words, for example by removing suffixes for
plural and case.
You'd have to create a synonym file yourself.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan N. Ivanov | 2022-08-17 20:06:10 | Setting up streaming replication on large database (20+ TB) for the first time |
Previous Message | David G. Johnston | 2022-08-17 15:25:46 | Re: Sub:column "" is of type bigint but expression is of type character varying |