From: Ritanjali Majihee <rmajhee@247headhunting.com>
To: magnus@hagander.net
Cc: pgsql-general@postgresql.org
Cc: Mahantesh Ambiger <mahantesh.ambiger@yahoo.com>
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> (raw)
In-Reply-To: <CABUevExqNyhcOG8iEQimpwZOso=05tYHhA3cbcjas=WgFy6EVg@mail.gmail.com>
References: <!&!AAAAAAAAAAAYAAAAAAAAAKQM2CcVIwNCpuajI1dPVRHCgAAAEAAAAEaa48fsi4hCqOYT0Eat45oBAAAAAA==@247headhunting.com>
<CABUevExQ6H8qstB=9+scaT7CX=t8y3_BqgpchL1WO3ydHaD1=Q@mail.gmail.com>
<!&!AAAAAAAAAAAYAAAAAAAAAKQM2CcVIwNCpuajI1dPVRHCgAAAEAAAAE9PhcQAt+1AhovhKOGQy3QBAAAAAA==@247headhunting.com>
<CABUevExqNyhcOG8iEQimpwZOso=05tYHhA3cbcjas=WgFy6EVg@mail.gmail.com>
Hi Magnus ,
Example- Search keyword is ("Marketing Coordinator" OR "Marketing Specialist" OR "Marketing Associate" ) AND "Creative Suite".
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 .
Can you please help us solve this issue.
Thanks,
Ritanjali
From: magnus@hagander.net [mailto:magnus@hagander.net]
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
(please don't top-post on the postgresql mailinglists)
On Fri, Jan 18, 2019 at 3:57 PM Ritanjali Majihee <rmajhee@247headhunting.com> wrote:
Hi Magnus,
exact Search keyword is ("Marketing Coordinator" OR "Marketing Specialist" OR "Marketing Associate" ) AND "Creative Suite".
Where condition like below syntax we are using in Postgresql function
SELECT * from tablename where html_tokens @@ to_tsquery( ' || quote_literal(ikeyword) || ')
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: rmajhee@247headhunting.com, magnus@hagander.net, mahantesh.ambiger@yahoo.com
Subject: Re: Full text search with more than one word
In-Reply-To: <000d01d4b4a4$a1fb3c60$e5f1b520$@247headhunting.com>
References: <!&!AAAAAAAAAAAYAAAAAAAAAKQM2CcVIwNCpuajI1dPVRHCgAAAEAAAAEaa48fsi4hCqOYT0Eat45oBAAAAAA==@247headhunting.com> <CABUevExQ6H8qstB=9+scaT7CX=t8y3_BqgpchL1WO3ydHaD1=Q@mail.gmail.com> <!&!AAAAAAAAAAAYAAAAAAAAAKQM2CcVIwNCpuajI1dPVRHCgAAAEAAAAE9PhcQAt+1AhovhKOGQy3QBAAAAAA==@247headhunting.com> <CABUevExqNyhcOG8iEQimpwZOso=05tYHhA3cbcjas=WgFy6EVg@mail.gmail.com> <000d01d4b4a4$a1fb3c60$e5f1b520$@247headhunting.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