Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4-1
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)