Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDxXJ-0000jl-VI for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2017 19:03:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDxXJ-0003qf-Hk for pgsql-general@arkaria.postgresql.org; Sun, 12 Nov 2017 19:03:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eChuP-0000GA-4s for pgsql-general@postgresql.org; Thu, 09 Nov 2017 08:09:57 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eChuM-0006dn-IT for pgsql-general@postgresql.org; Thu, 09 Nov 2017 08:09:55 +0000 Received: by mail-wm0-x235.google.com with SMTP id b189so15036475wmd.4 for ; Thu, 09 Nov 2017 00:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pXpbglUwQ4WnfO5Jp7PAOtkq/xUaXgOrv7a6vGrIEtM=; b=VTRtusHGBMoXpOI9WukknSPZgkoNxM5J6Hd+YNRKg0AGWLKrLqTUgMDKFkH5j4Soi6 0cVAfX3bbQFbzqwXShzBPqtXW1QoVJmE+VKQhMAeeOlGsUo1Q4EcOHi7RF4zrOylmT4o VM2VBw80HGMxyOvhEcnEQzQTQR9p7z1jg1yO8eg5dDLH3HSx+86sRqvTcqb7vg2iY2nl 0KpWTvu8S/x736NbSxzOW9DY20GimWELYqFuCR97CWxxCVpCrBq3TuJJ2qNO1LY5GjeT Tt7lksET0gdyqHDAOB+eAsqEGr88lMYXaLOrHR71UuXZoviRK0RJqjAyxlK+OOJ+7s60 Unrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pXpbglUwQ4WnfO5Jp7PAOtkq/xUaXgOrv7a6vGrIEtM=; b=l0cHUSODud3s4w1CNBKRiqoEU1u+naQmeLvO5IG/zzDlfO3Tcq8rrxhWblcQpXbYQa uETDpd0V1wRYJYOEj76E7JNfL9MopjgSNJ6VipL7Jm4n/CxXsB3fYR/6gDiF2Oc63vSk 41Uv+DQeT+RrsMs1liu7+9FgCLZzVuVDDxmoG0EHvY1pS+4YF/W10qYrTf4Jj8fiWK9f iPTvt3nDfj/EcyO5w+z+ArNzru07wWTu+R2pRWUfjkWFqCYTkZnrPN8W5Ex4MR6nA8Bu 5gvTyuEh5S9o/oJTLou6LOalUTQk7DfYu6sAe2P0anM5TqLI8b9ubs0UBv6dP4dVzptO s/Fg== X-Gm-Message-State: AJaThX6F/9yo9DL+A8s+r7o4ycjzVAj0SI8mifHxhsGJpC5colc/Rthy FsiYLIMDPPIUa1EIHQLIoVmT+DjP X-Google-Smtp-Source: ABhQp+TdgIo6Ioo/sjmvumy3vLNOTy1lCMUBbG064AI72eZoUl09RtyVtPzbmJ7/y9rM5ELh1JX4ag== X-Received: by 10.80.169.15 with SMTP id l15mr4102666edc.269.1510214991562; Thu, 09 Nov 2017 00:09:51 -0800 (PST) Received: from ?IPv6:2a02:200:2e00:a230:20b9:8baa:3700:ae86? ([2a02:200:2e00:a230:20b9:8baa:3700:ae86]) by smtp.gmail.com with ESMTPSA id c32sm5543884edb.51.2017.11.09.00.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Nov 2017 00:09:50 -0800 (PST) Subject: Re: Combine multiple text search configuration To: hmidi slim Cc: pgsql-general@postgresql.org References: <034a1475-4e88-227b-8f96-2bc64ce6998e@gmail.com> <9b1cef68-0652-84b0-15b7-9ab20495ee94@selfnet.de> From: =?UTF-8?Q?Johannes_Gra=c3=abn?= Message-ID: Date: Thu, 9 Nov 2017 09:09:49 +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: en-US 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