From 4077980d67a2f27b88a6bc7531da31cae0ed0fb1 Mon Sep 17 00:00:00 2001 From: Bruce Momjian <bruce@momjian.us> Date: Fri, 18 Feb 2011 23:23:52 -0500 Subject: [PATCH] Improve text search prefix doc addition. --- doc/src/sgml/datatype.sgml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 10f0e590d79..253b7578985 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -3847,12 +3847,9 @@ SELECT 'super:*'::tsquery; 'super':* </programlisting> This query will match any word in a <type>tsvector</> that begins - with <quote>super</>. - </para> - - <para> - Note that text search configuration processing happens before - comparisons, which means this comparison returns <literal>true</>: + with <quote>super</>. Note that prefixes are first processed by + text search configurations, which means this comparison returns + true: <programlisting> SELECT to_tsvector( 'postgraduate' ) @@ to_tsquery( 'postgres:*' ); ?column? -- GitLab