Re: Synonyms in doc search

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Synonyms in doc search
Date: 2018-10-14 16:47:54
Message-ID: CABUevEzQU=U8o=FR-ch2fmdtU5is8QJHKPmo_ptJoaROSZYo1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Sat, Oct 13, 2018 at 1:15 AM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:

> Is is possible to add synonyms (in some way, or similar functionality) to
> the
> docs search in order to promote content? I just searched for TLS in the
> v10
> docs and the number one hit, out of meagre 7 in total, is the 9.1.17
> release
> notes. If I instead search for SSL there are 130 hits with the first one
> being
> the relevant page. Personally I know the reason for this, but a newcomer
> is
> unlikely to.
>

We don't have the ability to do this specifically for the docs search, but
we could do it globally across either all the website search or even all
the website + all the archives. A bit of a pain to reindex the archives
(especially since I just did it a couple of days ago, see note on -www
about downtime), but the website part should be quick. It's just a tsearch
synonym dictionary...

If we do want to do that, we may want to give some thought to if we should
add any more synonoyms at the same time?

> Where we use terminology which is different from what is commonly used, it
> wouldn’t hurt to point users in the right direction. Is it enough to add
> is as
> another indexterm as in the below, or would it require more invasive
> changes?
>

Docs search is freetext based, on the generated HTML only. There's a long
standing TODO to try to do something better based on the structured data we
have, but nothing's been done so far. It's probably easier now with XML,
but the question is how much easier...

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Daniel Gustafsson 2018-10-15 11:41:32 Re: Synonyms in doc search
Previous Message Jonathan S. Katz 2018-10-13 20:20:42 Re: Adding PGInstaller to the Downloads section