issue in the doc

From: Yousef Mohamed <yousssef(dot)mohammmed(dot)12(at)gmail(dot)com>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: issue in the doc
Date: 2026-04-05 22:38:17
Message-ID: CABA=AZ3GGrg+T7GrYq-iuKyJrAOwC6qZ5DStHzVLFOGrToPqew@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Page:
https://www.postgresql.org/docs/current/textsearch-intro.html

The documentation says:

tsvector @@ tsquery
tsquery @@ tsvector
text @@ tsquery
text @@ text

The first two of these we saw already. The form text @@ tsquery is
equivalent to to_tsvector(x) @@ y. The form text @@ text is equivalent
to to_tsvector(x)
@@ plainto_tsquery(y).

Question:

In the expression:
to_tsvector(x) @@ plainto_tsquery(y)

what do x and y refer to exactly?

are they correspond to the left-hand and right-hand sides of the original
expression (text @@ text) ?

if yes , i think it's better to mention the order of the x and y like :
(x @@ y ) or ( y @@ x)

thanks

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2026-04-05 23:00:03 Re: issue in the doc
Previous Message Maciek Sakrejda 2026-04-05 18:08:01 Re: doc: Clarify ANALYZE VERBOSE output