Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOLSD-0008FT-H9 for pgsql-general@arkaria.postgresql.org; Wed, 17 Aug 2022 15:59:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOLSB-0006Er-TJ for pgsql-general@arkaria.postgresql.org; Wed, 17 Aug 2022 15:59:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOLSB-0006Ei-Cx for pgsql-general@lists.postgresql.org; Wed, 17 Aug 2022 15:59:35 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oOLS4-0005k5-Gl for pgsql-general@postgresql.org; Wed, 17 Aug 2022 15:59:34 +0000 Received: by mail-ej1-x62a.google.com with SMTP id j8so25295277ejx.9 for ; Wed, 17 Aug 2022 08:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:from:to:cc; bh=yEj7xAi4NkGU4ySqrHDCo2ypn4lGGYHEAv4nNAKK6Ew=; b=CSUPRWZoAvAN4MQguJMbfCg391rXmKBYwYNCByY+QA+AyGflu43j1TfYb6iUWajn31 djUMS6G3tecga87JrU97WJFMMxkx8CB0rb2qU7GRWa8KMS7CgYxsXFu3tvJyhrSVE4qM pDrklvLGvytF6+fpnw2vqVXypFcJwXqi5s+eCe3TCpvcKoAkt7Tc9D4sSx6JLvqR4eqH Fe5b8NbA9GLF/Bcu+0bEfvT86lBrrB88Fn6vKEb8B4JoNUDi+PXC3MIA92ofNZb/X0xd GMJQ4eFSulTe+u2ptDagML2UeCHiD3GuGEnejbsac4T2D1Ja/adT28VeWdV4eAdabvlW JaTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc; bh=yEj7xAi4NkGU4ySqrHDCo2ypn4lGGYHEAv4nNAKK6Ew=; b=VoqnRXuaaW+6FstCsbZQ5Rh3iq+AsgU19cZYCSNkNvp3TOt6RPFG25cUExXTV2sQc0 eW+Qsbxw6nekuvBnt6C5KaFaW6FsQrtCeKYYJBxnSr+gGyIQNlE8aqnoHz/KQ+ZRFRKt ffAsDlDAjXFpbxxAfqZ1FOZFfQXKD4CNVXrP1qVathB6CHDowBeJc1J76STx7d3yp2U7 mZeNRu5EvXuOJ435T7emieBB2d8VuZ488rWtNP0dWE434ibN9qlXEt/69HDwqw50gVWT O1ptompjsc/BG2xkt2AT0iX8+20kFSq0r7xtFES8f+Xv6e2YlPyVZOU0QfqzHjEYeD4a toCg== X-Gm-Message-State: ACgBeo3pmPaYearS9fn7rD9oqVxNN0YZb8Kkw/LgGmTx1xoAfJ2TvJYV 7SXC493enIuJTBhx8bc7/tWcfg== X-Google-Smtp-Source: AA6agR7FKQCzTRMRTtqp8cJv2i1s+WpkN7kxcDQ1MPZEELj4vUDdWgnUe1mhPblAjXP7X0L9/VfXjw== X-Received: by 2002:a17:907:9484:b0:738:6f9f:6032 with SMTP id dm4-20020a170907948400b007386f9f6032mr7294617ejc.602.1660751966327; Wed, 17 Aug 2022 08:59:26 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:b6d9:d091:208:1a3b:bd06]) by smtp.gmail.com with ESMTPSA id k8-20020a17090627c800b00730ba005b39sm7037079ejc.132.2022.08.17.08.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 08:59:25 -0700 (PDT) Message-ID: <3fdb5db0d5b14b71b567b5f51d390db54c4e695d.camel@cybertec.at> Subject: Re: i added Arabic Dictionary but how I know i'm using it From: Laurenz Albe To: Mohammed falih , pgsql-general@postgresql.org Date: Wed, 17 Aug 2022 17:59:24 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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