Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsqpq-0006PE-AC for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 14:43:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsqpo-00080m-GJ for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 14:43:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsqpo-00080b-AH for pgsql-bugs@lists.postgresql.org; Thu, 23 Aug 2018 14:43:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsqpl-0001Ex-4Y for pgsql-bugs@postgresql.org; Thu, 23 Aug 2018 14:43:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7NEhTYp017908; Thu, 23 Aug 2018 10:43:30 -0400 From: Tom Lane To: "Melek JARRAYA" cc: Jeff Janes , Pg Bugs Subject: Re: Not found indexed word In-reply-to: References: Comments: In-reply-to "Melek JARRAYA" message dated "Tue, 21 Aug 2018 16:59:27 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17906.1535035409.1@sss.pgh.pa.us> Date: Thu, 23 Aug 2018 10:43:29 -0400 Message-ID: <17907.1535035409@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Melek JARRAYA" writes: > Here is in screenshot the query executed for the search for the word > "Pepinier". > The search result is always null. > QueryWords contains the search word. You seem to be using the single-argument form of to_tsquery, which means that the way it stems the word is going to depend on the setting of default_text_search_config. It looks like the stored word was stemmed using the "french" setting, but maybe that's not what prevails for your running application. I'd try executing just "SELECT to_tsquery('Pepiniere')" from your application and see what you get. In some quick experiments here, I get 'pepinier' in French or Spanish, but just 'pepini' in English or German. So that'd be enough to prevent a match to a stored 'pepinier'. regards, tom lane