Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eChy5-0004aH-4q for pgsql-general@arkaria.postgresql.org; Thu, 09 Nov 2017 08:13:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eChy4-0004m4-J8 for pgsql-general@arkaria.postgresql.org; Thu, 09 Nov 2017 08:13:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eChvf-0000Tc-N4 for pgsql-general@postgresql.org; Thu, 09 Nov 2017 08:11:15 +0000 Received: from mail-1.server.selfnet.de ([2001:7c0:e701:126::65] helo=mail.wh-stuttgart.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eChvc-0000os-5J for pgsql-general@postgresql.org; Thu, 09 Nov 2017 08:11:14 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.wh-stuttgart.net (Postfix) with ESMTP id 5E7E517F824; Thu, 9 Nov 2017 09:11:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.selfnet.de Received: from mail.wh-stuttgart.net ([127.0.0.1]) by localhost (mail-1.server.selfnet.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bfoa4b1HIK8Y; Thu, 9 Nov 2017 09:11:08 +0100 (CET) Received: from [IPv6:2a02:200:2e00:a230:20b9:8baa:3700:ae86] (unknown [IPv6:2a02:200:2e00:a230:20b9:8baa:3700:ae86]) by mail.wh-stuttgart.net (Postfix) with ESMTPSA; Thu, 9 Nov 2017 09:11:08 +0100 (CET) Subject: Fwd: Re: Combine multiple text search configuration References: To: hmidi slim Cc: pgsql-general@postgresql.org From: =?UTF-8?Q?Johannes_Gra=c3=abn?= X-Forwarded-Message-Id: Message-ID: <76712239-7181-5c03-5457-5b5ba2af679b@selfnet.de> Date: Thu, 9 Nov 2017 09:11:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE-1901 Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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