ADD_NDATA_SECTION
Use this procedure to find matches that are spelled in a similar way. The value of an NDATA section is extracted from the document text like other sections, but is indexed as name data. NDATA sections are stored in the CTX_USER_SECTIONS view.
Syntax
CTX_DDL.ADD_NDATA_SECTION(
group_name IN VARCHAR2,
section_name IN VARCHAR2,
tag IN VARCHAR2
);
group_name
Name of the group that contains the section.
section_name
Name of the NDATA section.
tag
Name of the tag that marks the start of a section. For example, if the tag is <H1>, specify H1. The start tag you specify must be unique within a section group.
Notes
NDATA sections support both single and multi-byte data, however, there are character- and term-based limitations. NDATA section data that is indexed is constrained as follows:
-
number of characters in a single, white space delimited term
511
-
number of white space delimited terms
255
-
total number of characters, including white spaces
511
NDATA section data that exceeds these constraints are truncated.
Example
The following example defines a section group namegroup of the BASIC_SECTION_GROUP type. It then creates an NDATA section in namegroup called firstname.
begin
ctx_ddl.create_section_group('namegroup', 'BASIC_SECTION_GROUP');
ctx_ddl.add_ndata_section('namegroup', 'firstname', 'fname1');
end;