pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Full-text Search - Thesaurus relationships
5+ messages / 2 participants
[nested] [flat]

* Full-text Search - Thesaurus relationships
@ 2018-10-30 23:08  Nicolas Paris <nicolas.paris@riseup.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Nicolas Paris @ 2018-10-30 23:08 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi,

The documentation[1] says thesaurus can include informations of terms
relationships such broader terms, preferred terms ...

I haven't been able to find out how to exploit those relationship in
postgres. Is there any keyword to and associated syntax to make use of
them ?

Thanks,


[1]: https://www.postgresql.org/docs/current/static/textsearch-dictionaries.html#TEXTSEARCH-THESAURUS
-- 
nicolas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Full-text Search - Thesaurus relationships
@ 2018-10-31 06:56  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Nicolas Paris <nicolas.paris@riseup.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Laurenz Albe @ 2018-10-31 06:56 UTC (permalink / raw)
  To: Nicolas Paris <nicolas.paris@riseup.net>; pgsql-general@lists.postgresql.org

Nicolas Paris wrote:

> The documentation[1] says thesaurus can include informations of terms
> relationships such broader terms, preferred terms ...
> 
> I haven't been able to find out how to exploit those relationship in
> postgres. Is there any keyword to and associated syntax to make use of
> them ?

No, it should happen automatically.

Essentially, it is an extended synonym dictionary, and if you specify it
for a certain token type in your text search configuration, it will replace
certain phrases with something else.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Full-text Search - Thesaurus relationships
@ 2018-10-31 08:00  Nicolas Paris <nicolas.paris@riseup.net>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 5+ messages in thread

From: Nicolas Paris @ 2018-10-31 08:00 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On Wed, Oct 31, 2018 at 07:56:28AM +0100, Laurenz Albe wrote:
> > The documentation[1] says thesaurus can include informations of terms
> > relationships such broader terms, preferred terms ...
> > I haven't been able to find out how to exploit those relationship in
> > postgres. Is there any keyword to and associated syntax to make use of
> > them ?
> No, it should happen automatically.

If "broader than" or "narrower than" have the same behavior than "is
equivalent to" I cannot figure out what's the purpose of them.

-- 
nicolas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Full-text Search - Thesaurus relationships
@ 2018-10-31 09:49  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Nicolas Paris <nicolas.paris@riseup.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Laurenz Albe @ 2018-10-31 09:49 UTC (permalink / raw)
  To: Nicolas Paris <nicolas.paris@riseup.net>; pgsql-general@lists.postgresql.org

Nicolas Paris wrote:
> > > The documentation[1] says thesaurus can include informations of terms
> > > relationships such broader terms, preferred terms ...
> > > I haven't been able to find out how to exploit those relationship in
> > > postgres. Is there any keyword to and associated syntax to make use of
> > > them ?
> 
> If "broader than" or "narrower than" have the same behavior than "is
> equivalent to" I cannot figure out what's the purpose of them.

Can you come up with a clear question?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Full-text Search - Thesaurus relationships
@ 2018-10-31 12:41  Nicolas Paris <nicolas.paris@riseup.net>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 0 replies; 5+ messages in thread

From: Nicolas Paris @ 2018-10-31 12:41 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-general@lists.postgresql.org

On Wed, Oct 31, 2018 at 10:49:04AM +0100, Laurenz Albe wrote:
> Nicolas Paris wrote:
> > > > The documentation[1] says thesaurus can include informations of terms
> > > > relationships such broader terms, preferred terms ...
> > > > I haven't been able to find out how to exploit those relationship in
> > > > postgres. Is there any keyword to and associated syntax to make use of
> > > > them ?
> > 
> > If "broader than" or "narrower than" have the same behavior than "is
> > equivalent to" I cannot figure out what's the purpose of them.
> Can you come up with a clear question?

Actually no because I finally understood the behavior. 

Thanks,

-- 
nicolas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2018-10-31 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-30 23:08 Full-text Search - Thesaurus relationships Nicolas Paris <nicolas.paris@riseup.net>
2018-10-31 06:56 ` Laurenz Albe <laurenz.albe@cybertec.at>
2018-10-31 08:00   ` Nicolas Paris <nicolas.paris@riseup.net>
2018-10-31 09:49     ` Laurenz Albe <laurenz.albe@cybertec.at>
2018-10-31 12:41       ` Nicolas Paris <nicolas.paris@riseup.net>

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