Search Postgresql Archives

text-prefix search in 9.4's JSONB

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

 



Hi all.
 
I'm excited about 9.4's new JSONB and search-performance.
 
Is it possible to combine tsearch's prefix-search with the new JSONB-format?
 
Something like this (pseudo-code):
SELECT '{"subject": "visena"}'::jsonb @>  '{"subject": to_tsquery('simple', '(vise:*|office:*)')}';
 
and have the above query match documents where subject contains the prefixes "vise" and "office", which would match subject="visena" and subject="officenet"
 
Would be ultimate cool if this was possible!
 
Thanks.
 
--
Andreas Jospeh Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@xxxxxxxxxx
www.visena.com

[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