SET_SECTION_ATTRIBUTE

Use SET_SECTION_ATTRIBUTE to specify attributes or properties for a given section.

The attribute names listed under “Syntax” are supported. Note that some attributes only apply to sections that are tokenized. The following section types are tokenized:

Syntax

CTX_DDL.SET_SECTION_ATTRIBUTE(
                   group_name   IN VARCHAR2,
                   section_name IN VARCHAR2,
                   attribute    IN VARCHAR2,
                   value        IN VARCHAR2
 );

group_name

Specify the name of the section group.

section_name

Specify the name of the section.

attribute

Specify this attribute for SDATA sections:

value

Specify the attribute value. Specify boolean values as TRUE or FALSE, T or F, YES or NO, Y or N, ON or OFF, or 1 or 0.

Example

The following example creates a basic section group called sg, adds a SDATA section to it and marks that SDATA section to be searchable by using the ctx_ddl.set_section_attribute:

begin
   exec ctx_ddl.create_section_group('sg', 'basic_section_group');
   exec ctx_ddl.add_sdata_section('sg', 'sec1', 'sec1', 'varchar2');
   exec ctx_ddl.set_section_attribute('sg', 'sec1', 'optimized_for', 'search');
end;

Notes

Like CTX_DDL.SET_ATTRIBUTE, this procedure issues a commit.

See also the “Searching Document Sections in Oracle Text” chapter of Oracle Text Application Developer’s Guide.