diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-11-10 15:39:34 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-11-10 15:39:34 +0000 |
commit | d009992ba37ea51f6c4a6ab0bce4c21ddc0abe9b (patch) | |
tree | 0c0c9bf5696a4f4b81c7291354e04d6f6e1e0f67 /doc/src | |
parent | 82748bc253e00a07f0fcce3959af711b509a4e69 (diff) | |
download | postgresql-d009992ba37ea51f6c4a6ab0bce4c21ddc0abe9b.tar.gz postgresql-d009992ba37ea51f6c4a6ab0bce4c21ddc0abe9b.zip |
Have text search thesaurus files use "?" for stop words.
Throw an error for actual stop words, rather than a warning. This fixes
problems with cache reloading causing warning messages.
Re-enable stop words in regression tests; was disabled by Tom.
Document "?" as API change.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/textsearch.sgml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/doc/src/sgml/textsearch.sgml b/doc/src/sgml/textsearch.sgml index 26fdad0c6ff..e556c6dd78a 100644 --- a/doc/src/sgml/textsearch.sgml +++ b/doc/src/sgml/textsearch.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.30 2007/11/05 15:55:53 mha Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.31 2007/11/10 15:39:34 momjian Exp $ --> <chapter id="textsearch"> <title id="textsearch-title">Full Text Search</title> @@ -2258,20 +2258,17 @@ more sample word(s) : more indexed word(s) </para> <para> - Stop words recognized by the subdictionary are replaced by a <quote>stop - word placeholder</quote> to record their position. To illustrate this, - consider these phrases: + Specific stop words recognized by the subdictionary cannot be + specified; instead use <literal>?</> to mark the location where any + stop word can appear. For example, assuming that <literal>a</> and + <literal>the</> are stop words according to the subdictionary: <programlisting> -a one the two : swsw -the one a two : swsw2 +? one ? two : swsw </programlisting> - Assuming that <literal>a</> and <literal>the</> are stop words according - to the subdictionary, these two phrases are identical to the thesaurus: - they both look like <replaceable>stopword</> <literal>one</> - <replaceable>stopword</> <literal>two</>. Input matching this pattern - will be replaced by <literal>swsw2</>, according to the tie-breaking rule. + matches <literal>a one the two</> and <literal>the one a two</>; + both would be replaced by <literal>swsw</>. </para> <para> @@ -3578,6 +3575,12 @@ Parser: "pg_catalog.default" <listitem> <para> + Thesaurus files now use <literal>?</> for stop words. + </para> + </listitem> + + <listitem> + <para> What else? </para> </listitem> |