Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65e95c8

Browse files
committed
Fix support of phrase operator. Requirement check was added
after development of phrase search patch.
1 parentfe6c3fd commit65e95c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/utils/adt/tsvector_op.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,10 @@ tsquery_requires_match(QueryItem *curitem)
10001000
*/
10011001
return false;
10021002

1003+
caseOP_PHRASE:
1004+
/*
1005+
* Treat OP_PHRASE as OP_AND here
1006+
*/
10031007
caseOP_AND:
10041008
/* If either side requires a match, we're good */
10051009
if (tsquery_requires_match(curitem+curitem->qoperator.left))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp