From 32580efafbbf9f72f4fd691c01838ce5a7303acb Mon Sep 17 00:00:00 2001
From: Teodor Sigaev <teodor@sigaev.ru>
Date: Wed, 3 Dec 2003 16:07:48 +0000
Subject: [PATCH] Fix for word with several infinitives

---
 contrib/tsearch2/query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c
index c812f48b0d6..458c55de279 100644
--- a/contrib/tsearch2/query.c
+++ b/contrib/tsearch2/query.c
@@ -278,7 +278,7 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval, int2 we
 		pushval_asis(state, VAL, prs.words[count].word, prs.words[count].len, weight);
 		pfree(prs.words[count].word);
 		if (count)
-			pushquery(state, OPR, (int4) '|', 0, 0, 0);
+			pushquery(state, OPR, (int4) '&', 0, 0, 0);
 	}
 	pfree(prs.words);
 
-- 
GitLab