Full Text Search support for json and jsonb

Enterprise / PostgreSQL - Andrew Dunstan [dunslane.net] - 31 March 2017 14:26 EDT

The new functions are ts_headline() and to_tsvector.

Dmitry Dolgov, edited and documented by me.

e306df7 Full Text Search support for json and jsonb
doc/src/sgml/func.sgml | 18 ++++
src/backend/tsearch/to_tsany.c | 138 ++++++++++++++++++++++++++
src/backend/tsearch/wparser.c | 190 ++++++++++++++++++++++++++++++++++++
src/include/catalog/pg_proc.h | 26 +++++
src/include/tsearch/ts_type.h | 9 ++
src/test/regress/expected/json.out | 90 +++++++++++++++++
src/test/regress/expected/jsonb.out | 90 +++++++++++++++++
src/test/regress/sql/json.sql | 26 +++++
src/test/regress/sql/jsonb.sql | 26 +++++
9 files changed, 613 insertions(+)

Upstream: git.postgresql.org


  • Share