aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2017-04-04 16:50:13 -0400
committerAndrew Dunstan <andrew@dunslane.net>2017-04-04 16:50:13 -0400
commite75a78656bcaa3faff6b85891ca69d45dd21023f (patch)
treea28c1b390f8d1075eba1408d91842f1a8cd671ed
parent728bd991c3c4389fb39c45dcb0fe57e4a1dccd71 (diff)
downloadpostgresql-e75a78656bcaa3faff6b85891ca69d45dd21023f.tar.gz
postgresql-e75a78656bcaa3faff6b85891ca69d45dd21023f.zip
Clarify documentation of to_tsvector(json(b))
Per gripe from Sven R. Kunze
-rw-r--r--doc/src/sgml/func.sgml5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 19329dd1033..e3d852cdc71 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -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>