public inbox for [email protected]  
help / color / mirror / Atom feed
From: Yousef Mohamed <[email protected]>
To: [email protected]
Subject: issue in the doc
Date: Mon, 6 Apr 2026 00:38:17 +0200
Message-ID: <CABA=AZ3GGrg+T7GrYq-iuKyJrAOwC6qZ5DStHzVLFOGrToPqew@mail.gmail.com> (raw)

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


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: issue in the doc
  In-Reply-To: <CABA=AZ3GGrg+T7GrYq-iuKyJrAOwC6qZ5DStHzVLFOGrToPqew@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox