: :Full text search query ::

From: JD <venkijd(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: : :Full text search query ::
Date: 2015-02-25 11:50:25
Message-ID: CABokaaOpUwgRXqaPhAbRmseaxQgqVv8Nd0PB0S5s86OTJiHSfw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

please find herewith the following query

1. select * from partdetails where scode=118 and
(to_tsvector('english'::regconfig, part_number::text)) @@ to_tsquery('104')

it is showing only 1 record as output, it is expected to give 17 records as
output.

2. select * from partdetails where scode=118 and
(to_tsvector('english'::regconfig, part_number::text)) @@ to_tsquery('104/')

it is showing only 1 record as output, it is expected to give 17 records as
output.

3. select * from partdetails where scode=118 and
(to_tsvector('english'::regconfig, part_number::text)) @@
to_tsquery('104/1')

it is showing 17 records as output.

In our search case we are passing parameter value as 104 and expected to
get 17 records.

Kindly some one guide here.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-02-25 13:25:33 Re: 9.3: bug related to json
Previous Message Albe Laurenz 2015-02-25 09:12:48 Re: Sequences not moved to new tablespace