pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Melek JARRAYA <MJARRAYA@cfirst.fr>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Not found indexed word
Date: Thu, 23 Aug 2018 10:43:29 -0400
Message-ID: <17907.1535035409@sss.pgh.pa.us> (raw)
In-Reply-To: <OF46622633.2227B9AF-ONC12582F0.0051B407-C12582F0.0052591D@abw.fr>
References: <OFDE03311B.05AADF2E-ONC12582EF.002ACA25-C12582EF.003684B5@abw.fr>
	<CAMkU=1whHUjRJ78NDcdqV1o3PyWsFRtyXqZ0T6_cDEEG9Jph7Q@mail.gmail.com>
	<OF46622633.2227B9AF-ONC12582F0.0051B407-C12582F0.0052591D@abw.fr>

"Melek JARRAYA" <MJARRAYA@cfirst.fr> 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




view thread (6+ messages)  latest in thread

Message-ID: <17907.1535035409@sss.pgh.pa.us>
Permalink:  ../17907.1535035409@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17907.1535035409@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, MJARRAYA@cfirst.fr, jeff.janes@gmail.com
  Subject: Re: Not found indexed word
  In-Reply-To: <17907.1535035409@sss.pgh.pa.us>
  References: <OFDE03311B.05AADF2E-ONC12582EF.002ACA25-C12582EF.003684B5@abw.fr> <CAMkU=1whHUjRJ78NDcdqV1o3PyWsFRtyXqZ0T6_cDEEG9Jph7Q@mail.gmail.com> <OF46622633.2227B9AF-ONC12582F0.0051B407-C12582F0.0052591D@abw.fr> <17907.1535035409@sss.pgh.pa.us>

* 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