pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@postgresql.org
Subject: pgsql: Phrase full text search.
Date: Thu, 07 Apr 2016 15:58:14 +0000
Message-ID: <E1aoCJy-0004bp-HI@gemulon.postgresql.org> (raw )
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/bb140506df605fab58f48926ee1db1f80bdafb59
Modified Files
--------------
contrib/tsearch2/expected/tsearch2.out | 56 ++---
doc/src/sgml/datatype.sgml | 9 +-
doc/src/sgml/func.sgml | 39 ++++
doc/src/sgml/textsearch.sgml | 182 ++++++++++++++-
src/backend/tsearch/to_tsany.c | 187 +++++++--------
src/backend/tsearch/ts_parse.c | 15 +-
src/backend/tsearch/ts_selfuncs.c | 3 +-
src/backend/tsearch/wparser_def.c | 31 ++-
src/backend/utils/adt/tsginidx.c | 57 +++--
src/backend/utils/adt/tsgistidx.c | 4 +-
src/backend/utils/adt/tsquery.c | 311 +++++++++++++++++++------
src/backend/utils/adt/tsquery_cleanup.c | 362 +++++++++++++++++++++++++++--
src/backend/utils/adt/tsquery_op.c | 54 ++++-
src/backend/utils/adt/tsquery_util.c | 11 +-
src/backend/utils/adt/tsrank.c | 263 ++++++++++++++-------
src/backend/utils/adt/tsvector.c | 2 +-
src/backend/utils/adt/tsvector_op.c | 326 +++++++++++++++++++++++---
src/backend/utils/adt/tsvector_parser.c | 10 +-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_operator.h | 3 +
src/include/catalog/pg_proc.h | 7 +
src/include/tsearch/ts_public.h | 22 +-
src/include/tsearch/ts_type.h | 30 ++-
src/include/tsearch/ts_utils.h | 15 +-
src/test/regress/expected/tsdicts.out | 36 ++-
src/test/regress/expected/tsearch.out | 395 +++++++++++++++++++++++++++++---
src/test/regress/expected/tstypes.out | 369 ++++++++++++++++++++++++++++-
src/test/regress/sql/tsdicts.sql | 3 +
src/test/regress/sql/tsearch.sql | 101 ++++++++
src/test/regress/sql/tstypes.sql | 75 +++++-
30 files changed, 2536 insertions(+), 444 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
view thread (6+ messages) latest in thread
Message-ID: <E1aoCJy-0004bp-HI@gemulon.postgresql.org>
Permalink: ../E1aoCJy-0004bp-HI@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1aoCJy-0004bp-HI@gemulon.postgresql.org
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Phrase full text search.
In-Reply-To: <E1aoCJy-0004bp-HI@gemulon.postgresql.org>
References: <E1aoCJy-0004bp-HI@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox