Default CONTEXT Index Example
The following statement creates a default CONTEXT index called myindex on the text column in the docs table:
CREATE INDEX myindex ON docs(text) INDEXTYPE IS CTXSYS.CONTEXT;
When you use the CREATE INDEX statement without explicitly specifying parameters, the system completes the following actions by default for all languages:
-
Assumes that the text to be indexed is stored directly in a text column. The text column can be of type
CLOB,BLOB,BFILE,VARCHAR2,orCHAR. -
Detects the column type and uses filtering for the binary column types of
BLOBandBFILE.Most document formats are supported for filtering. If your column is plain text, the system does not use filtering.Note: For document filtering to work correctly in your system, you must ensure that your environment is set up correctly to support the
AUTO_FILTERfilter. -
Assumes that the language of the text to index is the language specified in your database setup.
-
Uses the default stoplist for the language specified in your database setup. Stoplists identify the words that the system ignores during indexing.
-
Enables fuzzy and stemming queries for your language, if this feature is available for your language.
You can always change the default indexing behavior by customizing your preferences and specifying those preferences in the parameter string of CREATE INDEX.
See Also: Oracle Text Reference to learn more about configuring your environment to use the AUTO_FILTER filter