: :Full text search query :: - Mailing list pgsql-general

From JD
Subject : :Full text search query ::
Date
Msg-id CABokaaOpUwgRXqaPhAbRmseaxQgqVv8Nd0PB0S5s86OTJiHSfw@mail.gmail.com
Whole thread Raw
Responses Re: : :Full text search query ::  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List 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.

pgsql-general by date:

Previous
From: Dowwie
Date:
Subject: Re: Row-level Security vs Application-level authz
Next
From: "Cenkar, Maciej"
Date:
Subject: Locking during UPDATE query with SUBSELECT