Oracle8i interMedia Text Migration Release 2 (8.1.6) Part Number A77061-01 |
|
Indexing, 4 of 14
In 8.1, the syntax for the CTX_DDL.CREATE_PREFERENCE and CTX_DDL.SET_ATTRIBUTE procedures have changed. In addition, the order in which you call these procedures has changed.
In 8.1, you create the preferences then set the attributes, which is the opposite order of what you do in pre-8.1.
See Also:
For a complete list of preference objects and their associated attributes, and the syntax for the CTX_DDL.CREATE_PREFERENCE and CTX_DDL.SET_ATTRIBUTE procedures, see the Oracle8i interMedia Text Reference. |
The following example creates a custom data storage preference called mypref
that tells the system that the files to be indexed are stored in the operating system. The example then uses CTX_DDL.SET_ATTRIBUTE to set the PATH attribute of to the directory /docs
.
begin ctx_ddl.create_preference('mypref', 'FILE_DATASTORE'); ctx_ddl.set_attribute('mypref', 'PATH', '/docs'); end;
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|