Skip to content

Commit e75a786

Browse files
committed
Clarify documentation of to_tsvector(json(b))
Per gripe from Sven R. Kunze
1 parent 728bd99 commit e75a786

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9569,7 +9569,10 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple
95699569
<literal><function>to_tsvector(<optional> <replaceable class="PARAMETER">config</> <type>regconfig</> , </optional> <replaceable class="PARAMETER">document</> <type>json(b)</type>)</function></literal>
95709570
</entry>
95719571
<entry><type>tsvector</type></entry>
9572-
<entry>reduce document text to <type>tsvector</></entry>
9572+
<entry>
9573+
reduce each string value in the document to a <type>tsvector</>, and then
9574+
concatentate those in document order to produce a single <type>tsvector</>
9575+
</entry>
95739576
<entry><literal>to_tsvector('english', '{"a": "The Fat Rats"}'::json)</literal></entry>
95749577
<entry><literal>'fat':2 'rat':3</literal></entry>
95759578
</row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy