From: Johannes Graën <johannes.graen@gmail.com>
To: hmidi slim <hmidi.slim2@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Combine multiple text search configuration
Date: Thu, 9 Nov 2017 09:09:49 +0100
Message-ID: <c2114369-d741-0226-85d5-63ba1c651fb9@gmail.com> (raw)
In-Reply-To: <CAMsqVxtuemP+8uu1UxY9jNvoyy2srDatE8BQpAD1WpsgPCcd7Q@mail.gmail.com>
References: <034a1475-4e88-227b-8f96-2bc64ce6998e@gmail.com>
<9b1cef68-0652-84b0-15b7-9ab20495ee94@selfnet.de>
<CAMsqVxtuemP+8uu1UxY9jNvoyy2srDatE8BQpAD1WpsgPCcd7Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On 2017-11-07 08:27, hmidi slim wrote:
> Hi,
> Thank for your proposition but when to use this query :
> (to_tsvector('english', document) || to_tsvector('french', document)) @@
> (to_tsquery('english', query) || to_tsquery('french', query))
> I think that the performance decrease and not a good solution for big
> amount of data. Is it?
You have more lexems when you combine two languages, but not twice as
many as there will be some overlap. That means your index will also be
be bigger than a single language index. Anyhow I would expect this
variant to perform better than querying two single columns
simultaneously. Maybe one of the FTS developers could comment on this?
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: johannes.graen@gmail.com, hmidi.slim2@gmail.com
Subject: Re: Combine multiple text search configuration
In-Reply-To: <c2114369-d741-0226-85d5-63ba1c651fb9@gmail.com>
References: <034a1475-4e88-227b-8f96-2bc64ce6998e@gmail.com> <9b1cef68-0652-84b0-15b7-9ab20495ee94@selfnet.de> <CAMsqVxtuemP+8uu1UxY9jNvoyy2srDatE8BQpAD1WpsgPCcd7Q@mail.gmail.com> <c2114369-d741-0226-85d5-63ba1c651fb9@gmail.com>
* 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