From d009992ba37ea51f6c4a6ab0bce4c21ddc0abe9b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 10 Nov 2007 15:39:34 +0000 Subject: 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. --- doc/src/sgml/textsearch.sgml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'doc/src') 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 @@ - + Full Text Search @@ -2258,20 +2258,17 @@ more sample word(s) : more indexed word(s) - Stop words recognized by the subdictionary are replaced by a stop - word placeholder to record their position. To illustrate this, - consider these phrases: + Specific stop words recognized by the subdictionary cannot be + specified; instead use ? to mark the location where any + stop word can appear. For example, assuming that a and + the are stop words according to the subdictionary: -a one the two : swsw -the one a two : swsw2 +? one ? two : swsw - Assuming that a and the are stop words according - to the subdictionary, these two phrases are identical to the thesaurus: - they both look like stopword one - stopword two. Input matching this pattern - will be replaced by swsw2, according to the tie-breaking rule. + matches a one the two and the one a two; + both would be replaced by swsw. @@ -3576,6 +3573,12 @@ Parser: "pg_catalog.default" + + + Thesaurus files now use ? for stop words. + + + What else? -- cgit v1.2.3