Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn0Fu-0001jj-OS for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 12:06:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gn0Ft-0003Os-Ec for pgsql-general@arkaria.postgresql.org; Fri, 25 Jan 2019 12:06:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn05v-0000kC-Gl for pgsql-general@lists.postgresql.org; Fri, 25 Jan 2019 11:56:23 +0000 Received: from tblr43.logix.in ([121.240.11.43]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gn05r-0003lt-Gk for pgsql-general@postgresql.org; Fri, 25 Jan 2019 11:56:22 +0000 Received: from vdvm29-out.logix.local (127.0.0.1) by tblr43.logix.in id h9bsm61oo38l for ; Fri, 25 Jan 2019 17:26:13 +0530 (envelope-from ) Received: (qmail 191917 invoked by uid 1012); 25 Jan 2019 11:56:13 -0000 X-Qmail-Scanner-Diagnostics: from 192.168.8.251 by vdvm29.logix.local (envelope-from , uid 1001) with qmail-scanner-2.11 ( Clear:RC:1(192.168.8.251):SA:0(IronPort):. Processed in 0.038911 secs); 25 Jan 2019 11:56:13 -0000 Received: from unknown (HELO smtp.logix.in) ([192.168.8.251]) (envelope-sender ) by vdvm29-out.logix.local (qmail-ldap-1.03) with SMTP for ; 25 Jan 2019 11:56:13 -0000 X-ORIGINAL-IP: 192.168.8.162 X-ORIGINAL-TIME: 25 Jan 2019 17:26:14 +0530 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Scanned: true Received: from blrmxhero.logix.local ([192.168.8.162]) by smtp.logix.in with ESMTP; 25 Jan 2019 17:26:14 +0530 Received: from blrmxhero.logix.local (localhost [127.0.0.1]) by blrmxhero.logix.local (Postfix) with ESMTP id 33E2E40B023D for ; Fri, 25 Jan 2019 11:56:13 +0000 (UTC) Received: from bytemail-ldpr.logix.local (bytemail-ldpr.logix.local [192.168.8.160]) by blrmxhero.logix.local (Postfix) with ESMTP; Fri, 25 Jan 2019 11:56:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bytemail-ldpr.logix.local (Postfix) with ESMTP id 1FF7126E9662; Fri, 25 Jan 2019 17:26:13 +0530 (IST) X-Virus-Scanned: amavisd-new at bytemail.logix.local Received: from bytemail-ldpr.logix.local ([127.0.0.1]) by localhost (bytemail-ldpr.logix.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XvciOFE1wssW; Fri, 25 Jan 2019 17:26:13 +0530 (IST) Received: from TPSH0023 (unknown [111.93.3.108]) by bytemail-ldpr.logix.local (Postfix) with ESMTPSA id C31BB26E9661; Fri, 25 Jan 2019 17:26:12 +0530 (IST) From: "Ritanjali Majihee" To: Cc: , "Mahantesh Ambiger" References: In-Reply-To: Subject: RE: Full text search with more than one word Date: Fri, 25 Jan 2019 17:23:48 +0530 Message-ID: <000d01d4b4a4$a1fb3c60$e5f1b520$@247headhunting.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01D4B4D2.BBB4FF00" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQC79HvjKjdxnqFXCSP+8S1c8HZrLAJzbHn7Aq/WfNgCRgm/B6e2CtYw Content-Language: en-us x-mxHero-Origin-Ip: /127.0.0.1:41812 Sender: rmajhee@247headhunting.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_000E_01D4B4D2.BBB4FF00 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Magnus , =20 Example- Search keyword is ("Marketing Coordinator" OR "Marketing = Specialist" OR "Marketing Associate" ) AND "Creative Suite". =20 Thank you for your information , phraseto_tsquery() is supporting two = word search or phase search where as it is not supporting logical = operator search and to_tsquery() is supporting logical operator search = but not supporting two word search or phase search. If we need both = functionally in full text search is there any other way we can proceed = . =20 Can you please help us solve this issue.=20 =20 Thanks, Ritanjali =20 =20 From: magnus@hagander.net [mailto:magnus@hagander.net]=20 Sent: Friday, January 18, 2019 8:45 PM To: Ritanjali Majihee Cc: pgsql-general General; Ambiger, Mahantesh; = mahantesh.ambiger@yahoo.com Subject: Re: Full text search with more than one word =20 (please don't top-post on the postgresql mailinglists) =20 On Fri, Jan 18, 2019 at 3:57 PM Ritanjali Majihee = wrote: Hi Magnus, =20 exact Search keyword is ("Marketing Coordinator" OR "Marketing = Specialist" OR "Marketing Associate" ) AND "Creative Suite". =20 Where condition like below syntax we are using in Postgresql function =20 SELECT * from tablename where html_tokens @@ to_tsquery( ' || = quote_literal(ikeyword) || ') =20