Oracle Text Reference Release 9.0.1 Part Number A90121-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 clause of CREATE INDEX.
To create a section group, you can specify one of the following group types with the CTX_DDL.CREATE_SECTION_GROUP procedure:
The following statement 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 the CTX_DDL.ADD_SECTION procedure. 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 statement 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 the CTX_DDL.ADD_SECTION procedure. 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 statement creates a section group called auto
with the AUTO_SECTION_GROUP group type. This section group automatically creates sections from tags in XML documents.
beginctx_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-2001, Oracle Corporation. All Rights Reserved. |
|