|
|
@ -913,7 +913,7 @@ SELECT plainto_tsquery('english', 'The Fat & Rats:C'); |
|
|
|
'fat' & 'rat' & 'c' |
|
|
|
'fat' & 'rat' & 'c' |
|
|
|
</screen> |
|
|
|
</screen> |
|
|
|
|
|
|
|
|
|
|
|
Here, all the input punctuation was discarded as being space symbols. |
|
|
|
Here, all the input punctuation was discarded. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<indexterm> |
|
|
|
<indexterm> |
|
|
@ -969,16 +969,16 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab |
|
|
|
syntax in which simple unformatted text is a valid query. |
|
|
|
syntax in which simple unformatted text is a valid query. |
|
|
|
Unlike <function>plainto_tsquery</function> |
|
|
|
Unlike <function>plainto_tsquery</function> |
|
|
|
and <function>phraseto_tsquery</function>, it also recognizes certain |
|
|
|
and <function>phraseto_tsquery</function>, it also recognizes certain |
|
|
|
operators. Moreover, this function should never raise syntax errors, |
|
|
|
operators. Moreover, this function will never raise syntax errors, |
|
|
|
which makes it possible to use raw user-supplied input for search. |
|
|
|
which makes it possible to use raw user-supplied input for search. |
|
|
|
The following syntax is supported: |
|
|
|
The following syntax is supported: |
|
|
|
|
|
|
|
|
|
|
|
<itemizedlist spacing="compact" mark="bullet"> |
|
|
|
<itemizedlist spacing="compact" mark="bullet"> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<literal>unquoted text</literal>: text not inside quote marks will be |
|
|
|
<literal>unquoted text</literal>: text not inside quote marks will be |
|
|
|
converted to terms separated by <literal>&</literal> operators, as |
|
|
|
converted to terms separated by <literal>&</literal> operators, as |
|
|
|
if processed by |
|
|
|
if processed by <function>plainto_tsquery</function>. |
|
|
|
<function>plainto_tsquery</function>. |
|
|
|
|
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
@ -990,18 +990,26 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<literal>OR</literal>: logical or will be converted to |
|
|
|
<literal>OR</literal>: the word <quote>or</quote> will be converted to |
|
|
|
the <literal>|</literal> operator. |
|
|
|
the <literal>|</literal> operator. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<literal>-</literal>: the logical not operator, converted to the |
|
|
|
<literal>-</literal>: a dash will be converted to |
|
|
|
the <literal>!</literal> operator. |
|
|
|
the <literal>!</literal> operator. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
</itemizedlist> |
|
|
|
</itemizedlist> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other punctuation is ignored. So |
|
|
|
|
|
|
|
like <function>plainto_tsquery</function> |
|
|
|
|
|
|
|
and <function>phraseto_tsquery</function>, |
|
|
|
|
|
|
|
the <function>websearch_to_tsquery</function> function will not |
|
|
|
|
|
|
|
recognize <type>tsquery</type> operators, weight labels, or prefix-match |
|
|
|
|
|
|
|
labels in its input. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Examples: |
|
|
|
Examples: |
|
|
|
<screen> |
|
|
|
<screen> |
|
|
|