ALTER TEXT CONFIGURATION Statement

Alters a text configuration object.

Note: This statement requires the Unstructured Data Analytics (IQ_UDA) license.

Syntax

ALTER TEXT CONFIGURATION  [  owner.]config-name
   STOPLIST stoplist 
   | DROP STOPLIST
   | { MINIMUM | MAXIMUM } TERM LENGTH integer
   |  TERM BREAKER 
      { GENERIC 
        [ EXTERNAL NAME  library-and-entry-point-name-string ] 
       | NGRAM }
   |  PREFILTER EXTERNAL NAME library-and-entry-point-name-string

Parameters

Examples

Usage

Use ALTER TEXT CONFIGURATION to change a text configuration object.

TEXT indexes are dependent on a text configuration object. SAP Sybase IQ TEXT indexes use immediate refresh, and cannot be truncated; you must drop the indexes before you can alter the text configuration object.

To view the settings for text configuration objects, query the SYSTEXTCONFIG system view.

STOPLIST clause – use this clause to create or replace the list of terms to ignore when building a TEXT index. Terms specified in this list are also ignored in a query. Separate stoplist terms with spaces.

Stoplist terms cannot contain whitespace. Stoplist terms should not contain non-alphanumeric characters. Non-alphanumeric characters are interpreted as spaces and break the term into multiple terms. For example, “and/or” is interpreted as the two terms “and” and “or”. The maximum number of stoplist terms is 7999.

Side Effects:
  • Automatic commit.

Permissions

TERM BREAKER or PREFILTER EXTERNAL NAME clause – Requires the CREATE ANY EXTERNAL REFERENCE system privilege, along with one of:
  • ALTER ANY TEXT CONFIGURATION system privilege.
  • ALTER ANY OBJECT system privilege.
  • You own the text configuration object.

All other clauses – Requires the ALTER ANY TEXT CONFIGURATION system privilege, regardless of whether the user is the owner of the configuration object.