pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedNot found indexed word
6+ messages / 3 participants
[nested] [flat]
* Not found indexed word
@ 2018-08-20 09:55 Melek JARRAYA <MJARRAYA@cfirst.fr>
0 siblings, 1 reply; 6+ messages in thread
From: Melek JARRAYA @ 2018-08-20 09:55 UTC (permalink / raw)
To: pgsql-bugs
Hello,
We are working on a projet in java 8 and we use the PostgreSQL 9.6
technology. Part of this project contains indexing and search, for that we
user tsvector.
During the test we found that for a spécific word "Pepiniere" the result of
the search is null, while the word is indexed in the data base.
If i search with the word Metz or Strasbourg, the word "Pepiniere" goes
back well in the results.
Do you ahave an idea about this problèm ?
Cordialement,
JARRAYA Melek
Tel: 03 88 06 64 34=
Attachments:
2A757690.gif (image/gif, 2.5K) download
view image
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Not found indexed word
@ 2018-08-21 03:39 Jeff Janes <jeff.janes@gmail.com>
parent: Melek JARRAYA <MJARRAYA@cfirst.fr>
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Janes @ 2018-08-21 03:39 UTC (permalink / raw)
To: Melek JARRAYA <MJARRAYA@cfirst.fr>; +Cc: pgsql-bugs
On Mon, Aug 20, 2018 at 5:55 AM, Melek JARRAYA <MJARRAYA@cfirst.fr> wrote:
> Hello,
>
> We are working on a projet in java 8 and we use the PostgreSQL 9.6
> technology. Part of this project contains indexing and search, for that we
> user tsvector.
> During the test we found that for a spécific word "Pepiniere" the result
> of the search is null, while the word is indexed in the data base.
>
>
>
> If i search with the word Metz or Strasbourg, the word "Pepiniere" goes
> back well in the results.
>
"Pepiniere" has an 'e' at the end, and "Pepinier" does not. It is possible
one is supposed to converted to the other by the stemmer, but without
seeing the exact query you ran, it is hard to know.
Cheers,
Jeff
Attachments:
2A757690.gif (image/gif, 2.5K) download
view image
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Not found indexed word
@ 2018-08-21 14:59 Melek JARRAYA <MJARRAYA@cfirst.fr>
parent: Jeff Janes <jeff.janes@gmail.com>
0 siblings, 2 replies; 6+ messages in thread
From: Melek JARRAYA @ 2018-08-21 14:59 UTC (permalink / raw)
To: Jeff Janes <jeff.janes@gmail.com>; +Cc: pgsql-bugs
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.
Cordialement,
JARRAYA Melek
Tel: 03 88 06 64 34
De : Jeff Janes <jeff.janes@gmail.com>
A : Melek JARRAYA <MJARRAYA@cfirst.fr>
Cc : Pg Bugs <pgsql-bugs@postgresql.org>
Date : 21/08/2018 05:39
Objet : Re: Not found indexed word
On Mon, Aug 20, 2018 at 5:55 AM, Melek JARRAYA <MJARRAYA@cfirst.fr> wrote:
Hello,
We are working on a projet in java 8 and we use the PostgreSQL 9.6
technology. Part of this project contains indexing and search, for
that we user tsvector.
During the test we found that for a spécific word "Pepiniere" the
result of the search is null, while the word is indexed in the data
base.
If i search with the word Metz or Strasbourg, the word "Pepiniere"
goes back well in the results.
"Pepiniere" has an 'e' at the end, and "Pepinier" does not. It is possible
one is supposed to converted to the other by the stemmer, but without
seeing the exact query you ran, it is hard to know.
Cheers,
Jeff=
Attachments:
1C544792.gif (image/gif, 46.1K) download
view image
graycol.gif (image/gif, 105B) download
view image
1C958626.gif (image/gif, 2.5K) download
view image
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Not found indexed word
@ 2018-08-21 18:41 Jeff Janes <jeff.janes@gmail.com>
parent: Melek JARRAYA <MJARRAYA@cfirst.fr>
1 sibling, 0 replies; 6+ messages in thread
From: Jeff Janes @ 2018-08-21 18:41 UTC (permalink / raw)
To: Melek JARRAYA <MJARRAYA@cfirst.fr>; +Cc: pgsql-bugs
On Tue, Aug 21, 2018 at 10:59 AM, Melek JARRAYA <MJARRAYA@cfirst.fr> wrote:
> 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.
>
> Cordialement,
> JARRAYA Melek
>
What is default_text_search_config set to? Could you show the query text
after all the substitutions were done?
Cheers,
Jeff
Attachments:
1C544792.gif (image/gif, 46.1K) download
view image
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Not found indexed word
@ 2018-08-23 14:43 Tom Lane <tgl@sss.pgh.pa.us>
parent: Melek JARRAYA <MJARRAYA@cfirst.fr>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2018-08-23 14:43 UTC (permalink / raw)
To: Melek JARRAYA <MJARRAYA@cfirst.fr>; +Cc: Jeff Janes <jeff.janes@gmail.com>; pgsql-bugs
"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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Not found indexed word
@ 2018-08-31 06:36 Melek JARRAYA <MJARRAYA@cfirst.fr>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 6+ messages in thread
From: Melek JARRAYA @ 2018-08-31 06:36 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Jeff Janes <jeff.janes@gmail.com>; pgsql-bugs
Hello,
By Défault the application is in French, but also i have the opportunity to
change in English or German.Can this cause the problem ?
If yes you must have serval words that do not go back in the search but in
this case there is just the set of words (pepinier , pepini, pepini, pepin,
pepi , pep), that does not go back.
Best regards,
Cordialement,
JARRAYA Melek
Tel: 03 88 06 64 34
De : Tom Lane <tgl@sss.pgh.pa.us>
A : "Melek JARRAYA" <MJARRAYA@cfirst.fr>
Cc : Jeff Janes <jeff.janes@gmail.com>, Pg Bugs
<pgsql-bugs@postgresql.org>
Date : 23/08/2018 16:43
Objet : Re: Not found indexed word
"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
=
Attachments:
graycol.gif (image/gif, 105B) download
view image
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-08-31 06:36 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-20 09:55 Not found indexed word Melek JARRAYA <MJARRAYA@cfirst.fr>
2018-08-21 03:39 ` Jeff Janes <jeff.janes@gmail.com>
2018-08-21 14:59 ` Melek JARRAYA <MJARRAYA@cfirst.fr>
2018-08-21 18:41 ` Jeff Janes <jeff.janes@gmail.com>
2018-08-23 14:43 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-31 06:36 ` Melek JARRAYA <MJARRAYA@cfirst.fr>
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