[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: i added Arabic Dictionary but how I know i'm using it
From:       Mohammed falih <moh.falih98 () gmail ! com>
Date:       2022-09-23 20:34:18
Message-ID: CADqaUh-X=DzQnTjpPi7P-S6JRfLnWu-qET4QfQQ46h17K+Zv1g () mail ! gmail ! com
[Download RAW message or body]

Hello Dear
sorry for the late reply
your response helped me to finish the feature successfully
thank you for your efforts
my best regards

On Wed, 17 Aug 2022, 6:59 pm Laurenz Albe, <laurenz.albe@cybertec.at> wrote:

> 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
>

[Attachment #3 (text/html)]

<div dir="auto"><div dir="auto">Hello Dear  </div>sorry for the late reply<div \
dir="auto">your response helped me to finish the feature successfully  </div><div \
dir="auto">thank you for your efforts  </div><div dir="auto">my best regards  \
</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 17 \
Aug 2022, 6:59 pm Laurenz Albe, &lt;<a \
href="mailto:laurenz.albe@cybertec.at">laurenz.albe@cybertec.at</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2022-08-17 at 14:33 +0300, \
Mohammed falih wrote:<br> &gt; I created the dictionary by this query  <br>
&gt; CREATE TEXT SEARCH DICTIONARY arabic_dict (<br>
&gt;       TEMPLATE = ispell,<br>
&gt;      DictFile = th_ar,<br>
&gt;       AffFile = th_ar,<br>
&gt;       Stopwords = arabic);<br>
&gt; and as you know the purpose in dictionary is like when you&#39;re searching for \
an<br> &gt; example a &quot;house&quot; the results will also retrieve a records with \
&quot;home&quot; because<br> &gt; it&#39;s a synonymous but   when I run queries \
nothing happens<br> <br>
That would be a &quot;synonym dictionary&quot;:<br>
<a href="https://www.postgresql.org/docs/current/textsearch-dictionaries.html#TEXTSEARCH-SYNONYM-DICTIONARY" \
rel="noreferrer noreferrer" \
target="_blank">https://www.postgresql.org/docs/current/textsearch-dictionaries.html#TEXTSEARCH-SYNONYM-DICTIONARY</a><br>
 An Ispell dictionary normalizes words, for example by removing suffixes for<br>
plural and case.<br>
<br>
<br>
You&#39;d have to create a synonym file yourself.<br>
<br>
Yours,<br>
Laurenz Albe<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic