From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Florian Fuchs <fuchsfl@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Configure StopWords in full text search without a configuration file?
Date: Thu, 17 Nov 2022 16:23:02 +0100
Message-ID: <a565b15a6a63f3c07bb035380612f4490c563b2c.camel@cybertec.at> (raw)
In-Reply-To: <CANt9JZSHuX-vhNuhcer2Urtag8xznAEC1q=HDVaCvnRznNE_kw@mail.gmail.com>
References: <CANt9JZSHuX-vhNuhcer2Urtag8xznAEC1q=HDVaCvnRznNE_kw@mail.gmail.com>
On Thu, 2022-11-17 at 14:30 +0100, Florian Fuchs wrote:
> is it possible to configure a StopWord list without a file in the
> configuration-filesystem of postgres?
> (StopWord: https://www.postgresql.org/docs/current/textsearch-dictionaries.html#TEXTSEARCH-STOPWORDS)
No, this is impossible.
> By default, the StopWord files are stored at $SHAREDIR/tsearch_data/*.stop - I don't
> have access to the filesystem, so I need to configure custom StopWords
> within my database/schema (SQL-Access).
>
> Is this somehow possible?
If you have superuser access or have a user that is a member of
"pg_write_server_files", you could write the stopword file via SQL.
Other than that, I see no possibility.
Yours,
Laurenz Albe
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-general@postgresql.org
Cc: laurenz.albe@cybertec.at, fuchsfl@gmail.com
Subject: Re: Configure StopWords in full text search without a configuration file?
In-Reply-To: <a565b15a6a63f3c07bb035380612f4490c563b2c.camel@cybertec.at>
References: <CANt9JZSHuX-vhNuhcer2Urtag8xznAEC1q=HDVaCvnRznNE_kw@mail.gmail.com> <a565b15a6a63f3c07bb035380612f4490c563b2c.camel@cybertec.at>
* 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