]> granicus.if.org Git - postgresql/commit
Phrase full text search.
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 7 Apr 2016 15:44:18 +0000 (18:44 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 7 Apr 2016 15:44:18 +0000 (18:44 +0300)
commitbb140506df605fab58f48926ee1db1f80bdafb59
tree581f9aeb71e3596000af3b4904e0c62a372d77b3
parent015e88942aa50f0d419ddac00e63bb06d6e62e86
Phrase full text search.

Patch introduces new text search operator (<-> or <DISTANCE>) into tsquery.
On-disk and binary in/out format of tsquery are backward compatible.
It has two side effect:
- change order for tsquery, so, users, who has a btree index over tsquery,
  should reindex it
- less number of parenthesis in tsquery output, and tsquery becomes more
  readable

Authors: Teodor Sigaev, Oleg Bartunov, Dmitry Ivanov
Reviewers: Alexander Korotkov, Artur Zakirov
30 files changed:
contrib/tsearch2/expected/tsearch2.out
doc/src/sgml/datatype.sgml
doc/src/sgml/func.sgml
doc/src/sgml/textsearch.sgml
src/backend/tsearch/to_tsany.c
src/backend/tsearch/ts_parse.c
src/backend/tsearch/ts_selfuncs.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/tsginidx.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsquery.c
src/backend/utils/adt/tsquery_cleanup.c
src/backend/utils/adt/tsquery_op.c
src/backend/utils/adt/tsquery_util.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector.c
src/backend/utils/adt/tsvector_op.c
src/backend/utils/adt/tsvector_parser.c
src/include/catalog/catversion.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/tsearch/ts_public.h
src/include/tsearch/ts_type.h
src/include/tsearch/ts_utils.h
src/test/regress/expected/tsdicts.out
src/test/regress/expected/tsearch.out
src/test/regress/expected/tstypes.out
src/test/regress/sql/tsdicts.sql
src/test/regress/sql/tsearch.sql
src/test/regress/sql/tstypes.sql