Why cannot use BASIC_SECTION_GROUP for XML documents with Tag Attributes ? (Doc ID 1311180.1)

Last updated on APRIL 06, 2011

Applies to:

Oracle Text - Version: 10.2.0.1 to 12.0.0.1 - Release: 10.2 to 12.0
Information in this document applies to any platform.

Goal

Why cannot use basic section group for XML documents with tag attributes having the following structure:

<comment author="jeeves">
I really like Oracle Text
</comment>'


Created the text index using basic_section_group and added a section for "comment" tag:

begin
ctx_ddl.create_section_group('bs_group', 'BASIC_SECTION_GROUP');
ctx_ddl.add_zone_section('bs_group', 'comment_sg', 'comment');
end;
/

Why searching for "oracle" term WITHIN the section name "comment_sg" does NOT find the document. Is this expected?

select ...
WHERE CONTAINS(data, 'oracle WITHIN comment_sg') > 0;

no rows selected



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms