@@ -913,7 +913,7 @@ SELECT plainto_tsquery('english', 'The Fat & Rats:C');
913
913
'fat' & 'rat' & 'c'
914
914
</screen>
915
915
916
- Here, all the input punctuation was discarded as being space symbols .
916
+ Here, all the input punctuation was discarded.
917
917
</para>
918
918
919
919
<indexterm>
@@ -969,16 +969,16 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab
969
969
syntax in which simple unformatted text is a valid query.
970
970
Unlike <function>plainto_tsquery</function>
971
971
and <function>phraseto_tsquery</function>, it also recognizes certain
972
- operators. Moreover, this function should never raise syntax errors,
972
+ operators. Moreover, this function will never raise syntax errors,
973
973
which makes it possible to use raw user-supplied input for search.
974
974
The following syntax is supported:
975
+
975
976
<itemizedlist spacing="compact" mark="bullet">
976
977
<listitem>
977
978
<para>
978
979
<literal>unquoted text</literal>: text not inside quote marks will be
979
980
converted to terms separated by <literal>&</literal> operators, as
980
- if processed by
981
- <function>plainto_tsquery</function>.
981
+ if processed by <function>plainto_tsquery</function>.
982
982
</para>
983
983
</listitem>
984
984
<listitem>
@@ -990,18 +990,26 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab
990
990
</listitem>
991
991
<listitem>
992
992
<para>
993
- <literal>OR</literal>: logical or will be converted to
993
+ <literal>OR</literal>: the word <quote>or</quote> will be converted to
994
994
the <literal>|</literal> operator.
995
995
</para>
996
996
</listitem>
997
997
<listitem>
998
998
<para>
999
- <literal>-</literal>: the logical not operator, converted to the
999
+ <literal>-</literal>: a dash will be converted to
1000
1000
the <literal>!</literal> operator.
1001
1001
</para>
1002
1002
</listitem>
1003
1003
</itemizedlist>
1004
+
1005
+ Other punctuation is ignored. So
1006
+ like <function>plainto_tsquery</function>
1007
+ and <function>phraseto_tsquery</function>,
1008
+ the <function>websearch_to_tsquery</function> function will not
1009
+ recognize <type>tsquery</type> operators, weight labels, or prefix-match
1010
+ labels in its input.
1004
1011
</para>
1012
+
1005
1013
<para>
1006
1014
Examples:
1007
1015
<screen>
0 commit comments