Search Postgresql Archives

: :Full text search query ::

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux