pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Mohammed falih <moh.falih98@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: i added Arabic Dictionary but how I know i'm using it
Date: Wed, 17 Aug 2022 17:59:24 +0200
Message-ID: <3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at> (raw)
In-Reply-To: <CADqaUh_XO0_ymavbiyuxNFeLxFCgiO+W3O4tMBmzb=7bHAPDiA@mail.gmail.com>
References: <CADqaUh_XO0_ymavbiyuxNFeLxFCgiO+W3O4tMBmzb=7bHAPDiA@mail.gmail.com>

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





view thread (3+ messages)  latest in thread

Message-ID: <3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at>
Permalink:  ../3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at/
Also on:    postgresql.org/message-id/3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, moh.falih98@gmail.com
  Subject: Re: i added Arabic Dictionary but how I know i'm using it
  In-Reply-To: <3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at>
  References: <CADqaUh_XO0_ymavbiyuxNFeLxFCgiO+W3O4tMBmzb=7bHAPDiA@mail.gmail.com> <3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox