4.1 Summary of the Procedure for Creating an Oracle Text Index
With Oracle Text, you can create indexes of type CONTEXT
, SEARCH INDEX
, CTXCAT
, and CTXRULE
.
By default, the system expects your documents to be stored in a text column. After you satisfy this requirement, you can create an Oracle Text index by using the CREATE INDEX
SQL statement as an extensible index of type CONTEXT
, without explicitly specifying preferences. The system automatically detects your language, the data type of the text column, and the format of the documents. Next, the system sets indexing preferences.
You can create a search index using the CREATE SEARCH INDEX
SQL statement for indexing and querying structured, unstructured, or semi-structured data, such as textual, JSON, and XML documents. The SEARCH INDEX
is an index type that supports the CONTEXT
index functionality along with sharded databases and system-managed partitioning for index storage.
To create an Oracle Text index:
-
(Optional) Determine your custom indexing preferences, section groups, or stoplists if you do not use the defaults. The following table describes these indexing classes:
Class Description How are your documents stored?
How can the documents be converted to plaintext?
What language is being indexed?
How should stem and fuzzy queries be expanded?
How should the index data be stored?
What words or themes are not to be indexed?
How are document sections defined?
-
(Optional) Create custom preferences, section groups, or stoplists.
-
Create the Oracle Text index with the
CREATE
INDEX
SQL statement. Name your index and, if necessary, specify preferences.