Do not fallback to AND for FTS phrase operator.

If there is no positional information of lexemes then phrase operator will not
fallback to AND operator. This change makes needing to modify TS_execute()
interface, because somewhere (in indexes, for example) positional information
is unaccesible and in this cases we need to force fallback to AND.

Per discussion [email protected]

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3dbbd0f02a257d8d5c4cba14726371505f2e7266

Modified Files
--------------
src/backend/utils/adt/tsginidx.c      |  2 +-
src/backend/utils/adt/tsgistidx.c     |  6 ++++--
src/backend/utils/adt/tsrank.c        |  6 ++++--
src/backend/utils/adt/tsvector_op.c   | 35 +++++++++++++++++++----------------
src/include/tsearch/ts_utils.h        | 19 ++++++++++++++++++-
src/test/regress/expected/tsearch.out |  9 +++++----
src/test/regress/sql/tsearch.sql      |  3 ++-
7 files changed, 53 insertions(+), 27 deletions(-)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to