Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
Indexing, 8 of 11
In order to issue WITHIN queries on document sections, you must create a section group before you define your sections. You specify your section group in the parameter string of CREATE INDEX.
To create a section group, you can specify one of the following group types with CTX_DDL.CREATE_SECTION_GROUP:
The following command creates a section group called htmgroup
with the HTML group type.
begin ctx_ddl_create_section_group('htmgroup', 'HTML_SECTION_GROUP'); end;
You can optionally add sections to this group using CTX_DDL.ADD_SECTION. To index your documents, you can issue a statement such as:
create index myindex on docs(htmlfile) indextype is ctxsys.context parameters('filter ctxsys.null_filter section group htmgroup');
The following command creates a section group called xmlgroup
with the XML_SECTION_GROUP group type.
begin ctx_ddl_create_section_group('xmlgroup', 'XML_SECTION_GROUP'); end;
You can optionally add sections to this group using CTX_DDL.ADD_SECTION. To index your documents, you can issue a statement such as:
create index myindex on docs(htmlfile) indextype is ctxsys.context parameters('filter ctxsys.null_filter section group xmlgroup');
The following command creates a section group called auto
with the AUTO_SECTION_GROUP group type. This section group automatically creates sections from tags in XML documents.
begin ctx_ddl_create_section_group('auto', 'AUTO_SECTION_GROUP'); end; create index myindex on docs(htmlfile) indextype is ctxsys.context parameters('filter ctxsys.null_filter section group auto');
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|