| Oracle9i XML API Reference - XDK and Oracle XML DB Release 2 (9.2) Part Number A96616-01 |
|
The DBMS_XDBT Package enables an administrator to create a ConText index on the XML DB hierarchy and configure it for automatic maintenance.
This chapter contains the following sections:
The DBMS_XDBT package provides a convenient mechanism for administrators to set up a ConText index on the Oracle XML DB Hierarchy. The package contains procedures to create default preferences, create the index and set up automatic synchronization of the context index
The DBMS_XDBT package also contains a set of package variables that describe the configuration settings for the index. These are intended to cover the basic customizations that installations may require, but is by no means a complete set.
The DBMS_XDBT package can be used in the following fashion:
dropPreferences() procedure.createPreferences() procedure.ConText index using the createIndex() procedure.configureAutoSync() procedure.This procedure drops any previously created preferences for the ConText index on the XML DB hierarchy.
PROCEDURE dropPreferences;
This procedure creates a set of default preferences based on the configuration settings.
PROCEDURE createPreferences;
This procedure creates a USER datastore preference for the ConText index on the XML DB hierarchy.
DatastorePref configuration setting.USER datastore procedure also filters the incoming document. The DBMS_XDBT package provides a set of configuration settings that control the filtering process.SkipFilter_Types array contains a list of regular expressions. Documents with a mime type that matches one of these expressions are not indexed. Some of the properties of the document metadata, such as author, remain unindexed.
NullFilter_Types array contains a list of regular expressions. Documents with a mime type that matches one of these expressions are not filtered; however, they are still indexed. This is intended to be used for documents that are text-based, such as HTML, XML and plain-text.PROCEDURE createDatastorePref;
This procedure creates a NULL filter preference for the ConText index on the XML DB hierarchy.
FilterPref configuration setting.USER datastore procedure filters the incoming document; see createDatastorePref for more details.PROCEDURE createFilterPref;
This procedure creates a BASIC lexer preference for the ConText index on the XML DB hierarchy.
lexer preference can be modified; see LexerPref configuration setting. No other configuration settings are provided.MultiLexer preferences are not supported.PROCEDURE createLexerPref;
This procedure creates a wordlist preference for the ConText index on the XML DB hierarchy.
WordlistPref configuration setting. No other configuration settings are provided.FUZZY_MATCH and STEMMER attributes are set to AUTO (auto-language detection)PROCEDURE createWordlistPref;
This procedure creates a stoplist for the ConText index on the XML DB hierarchy.
StoplistPref configuration setting.StopWords array is a configurable list of stopwords. These are meant to be stopwords in addition to the set of stopwords in CTXSYS.DEFAULT_STOPLIST.PROCEDURE createStoplistPref;
This procedure creates a BASIC_STORAGE preference for the ConText index on the XML DB hierarchy.
StoragePref configuration setting.ConText index; see the IndexTablespace configuration setting.I_INDEX_CLAUSE uses key compression.PROCEDURE createStoragePref;
This procedure creates a section group for the ConText index on the XML DB hierarchy.
SectiongroupPref configuration setting.AUTO_SECTION_GROUP or the PATH_SECTION_GROUP; see the SectionGroup configuration setting.PROCEDURE createSectiongroupPref;
This procedure creates the ConText index on the XML DB hierarchy.
PROCEDURE createIndex; Notes
IndexName configuration setting.LogFile configuration parameter to enable ROWID logging during index creation.IndexMemory configuration parameter to determine the amount of memory that index creation, and later SYNCs, will use.This procedure sets up jobs for automatic SYNCs of the ConText index.
USER_JOBS catalog viewsThe synchronization can be based on one of the following:
PROCEDURE configureAutoSync;
The DBMS_XDBT package can be customized in one of two ways.
Please note that the system must be configured to use job queues, and that the jobs can be viewed through the USER_JOBS catalog views.
This section describes the configuration settings, or package variables, available to customize the DBMS_XDBT package.
The following table lists configuration settings that are relevant to general indexing.
The following table lists configuration settings that control the filtering of documents in the XML DB hierarchy.
The following table lists configuration settings relevant to the sectioner.
The following table lists stoplist configuration settings.
| Parameter | Default Value(s) | Description |
|---|---|---|
|
StoplistPref |
XDB$CI_STOPLIST |
Name of the stoplist. |
|
StopWords |
'A'..'Z' |
List of stopwords, in addition to stopwords specified in |
The following table lists settings for other index preferences.
The following table lists settings that control when and how the ConText index is synchronized.
|
![]() Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|