Well done bahadir, u have given the right answer. I tried yesterday and it worked fine. Could you please further send me your email address ( if you have not objection )also to correspond with you in near future. I feel you are the right person ( master ) in oracle context server. Furhter i am looking for some training course in oracle context server, could you please guide and advice.
regards
sanjay
Main Topics
Browse All Topics





by: bahadirPosted on 1999-08-09 at 01:08:00ID: 1088150
i have a problem like this one ... you are right ... automatic indexing is not working ... so i use ctx_dml.reindex function ... use like this ... here is the example................... .......... .......... ........
AN_TABLE', to_char(a) ); _documan_t able','ctx sys.documa n_table.do c_text'); documan_ta ble');
create table documan_table
(doc_id number not null ,
doc_text long,
primary key(doc_id));
/
insert into documan_table values(1,'packman');
insert into documan_table values(2,'packman packman i have seen him before there');
insert into documan_table values(3,'there WAS A TIME WHEN I WAS SO BROKEN HEARTED');
insert into documan_table values(4,'as long as we are together who cares about the wheather ...');
create or replace trigger documan_table_ait
after insert on documan_table
for each row
begin
deneme(:NEW.doc_id);
exception
when others then raise;
end;
create or replace procedure deneme(a in number) is
begin
ctx_dml.reindex('CTX_DOCUM
exception
when others then raise;
end;
/
EXEC CTX_DDL.CREATE_POLICY('ctx
/
exec ctx_ddl.create_index('ctx_
/
create table documan_result_table
(textkey varchar2(64),score number,conid number);
/