]> granicus.if.org Git - postgresql/commit
Do not fallback to AND for FTS phrase operator.
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Jun 2016 17:47:32 +0000 (20:47 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Jun 2016 17:47:32 +0000 (20:47 +0300)
commit3dbbd0f02a257d8d5c4cba14726371505f2e7266
tree70a9fec2e68e357c361cb92f91367651b46f6bde
parent028350f619f7688e0453fcd2c4b25abe9ba30fa7
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 c19fcfec308e6ccd952cdde9e648b505@mail.gmail.com
src/backend/utils/adt/tsginidx.c
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector_op.c
src/include/tsearch/ts_utils.h
src/test/regress/expected/tsearch.out
src/test/regress/sql/tsearch.sql