]> granicus.if.org Git - postgresql/commitdiff
Clarify documentation of to_tsvector(json(b))
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 4 Apr 2017 20:50:13 +0000 (16:50 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 4 Apr 2017 20:50:13 +0000 (16:50 -0400)
Per gripe from Sven R. Kunze

doc/src/sgml/func.sgml

index 19329dd1033b0d08dfc072285a7f15d6d9d7e0ea..e3d852cdc71b0a94cce904edd5697a90bef04493 100644 (file)
@@ -9569,7 +9569,10 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple
          <literal><function>to_tsvector(<optional> <replaceable class="PARAMETER">config</> <type>regconfig</> , </optional> <replaceable class="PARAMETER">document</> <type>json(b)</type>)</function></literal>
         </entry>
         <entry><type>tsvector</type></entry>
-        <entry>reduce document text to <type>tsvector</></entry>
+        <entry>
+          reduce each string value in the document to a <type>tsvector</>, and then
+          concatentate those in document order to produce a single <type>tsvector</>
+        </entry>
         <entry><literal>to_tsvector('english', '{"a": "The Fat Rats"}'::json)</literal></entry>
         <entry><literal>'fat':2 'rat':3</literal></entry>
        </row>