Table of Contents
This chapter briefly introduces the TEXT_DDL package, and describes how to use the procedures of the package.
TEXT_DDL is used to modify the configuration of TEXT INDEX while using TEXT INDEX.
For more information on how to use TEXT INDEX, refer to Tibero TEXT Reference Guide.
This section describes the procedures provided by the TEXT_DDL package, in alphabetical order.
Adds a new stopword to a stoplist.
Details about the ADD_STOPWORD procedure are as follows:
Prototype
ADD_STOPWORD ( stoplist_name IN VARCHAR2, stopword IN VARCHAR2, lang IN VARCHAR2 DEFAULT 'ALL' )
Parameter
Example
SQL>EXEC TEXT_DDL.ADD_STOPWORD('DEFAULT_STOPLIST','test_word');
Creates a new preference.
Details about the CREATE_PREFERENCE procedure are as follows:
Prototype
CREATE_PREFERENCE ( udef_pref_name IN VARCHAR2, pdef_pref_name IN VARCHAR2 )
Parameter
Example
SQL>EXEC TEXT_DDL.CREATE_PREFERENCE('TEST1','BASIC_WORDLIST');
Creates a new stoplist.
Details about the CREATE_STOPLIST procedure are as follows:
Prototype
CREATE_STOPLIST ( stoplist_name IN VARCHAR2, stoplist_type IN VARCHAR2 DEFAULT 'DEFAULT_STOPLIST' )
Parameter
Example
SQL>EXEC TEXT_DDL.CREATE_STOPLIST('new_stoplist', 'DEFAULT_STOPLIST');
Deletes a preference.
Details about the DROP_PREFERENCE procedure are as follows:
Prototype
DROP_PREFERENCE ( udef_pref_name IN VARCHAR2 );
Parameter
Example
SQL>EXEC TEXT_DDL.DROP_PREFERENCE('TEST1');
Deletes a stoplist.
Details about the DROP_STOPLIST procedure are as follows:
Prototype
DROP_STOPLIST ( stoplist_name IN VARCHAR2 );
Parameter
Example
SQL>EXEC TEXT_DDL.DROP_PREFERENCE('new_stoplist');
Deletes a stopword from the stoplist.
Details about the REMOVE_STOPWORD procedure are as follows:
Prototype
REMOVE_STOPWORD ( stoplist_name IN VARCHAR2, stopword IN VARCHAR2, lang IN VARCHAR2 DEFAULT 'ALL' )
Parameter
Example
SQL>EXEC TEXT_DDL.REMOVE_STOPWORD('DEFAULT_STOPLIST','test_word');