9i bug using Oracle Text to search XML data
Using Oracle Text to Search XML Data: XML Data inserted in DATA column in TEST table
Create table test(id integer,DATA CLOB)
Department name="CS"
Employee
Vidya Bala
/Employee
/Department
Step1:
--------
Create an auto section group
begin
ctx_ddl.create_section_group('myautosectiongroup', 'AUTO_SECTION_GROUP');
end;
Step2:
-------
create index test_index on test(DATA)
indextype is ctxsys.context
parameters ('SECTION GROUP myautosectiongroup');
Step3:
---------
SELECT DATA FROM TEST
WHERE CONTAINS(DATA, 'Vidya WITHIN Employee') > 0;
1 Row Returned
SELECT DATA FROM TEST
WHERE CONTAINS(DATA, 'CS WITHIN Department@name') > 0;
0Rows (10g returns 1 row – 9i returns no row – Support is working on getting bug fix for the issue)
Create table test(id integer,DATA CLOB)
Employee
Vidya Bala
/Employee
/Department
Step1:
--------
Create an auto section group
begin
ctx_ddl.create_section_group('myautosectiongroup', 'AUTO_SECTION_GROUP');
end;
Step2:
-------
create index test_index on test(DATA)
indextype is ctxsys.context
parameters ('SECTION GROUP myautosectiongroup');
Step3:
---------
SELECT DATA FROM TEST
WHERE CONTAINS(DATA, 'Vidya WITHIN Employee') > 0;
1 Row Returned
SELECT DATA FROM TEST
WHERE CONTAINS(DATA, 'CS WITHIN Department@name') > 0;
0Rows (10g returns 1 row – 9i returns no row – Support is working on getting bug fix for the issue)
0 Comments:
Post a Comment
<< Home