Pazartesi, Şubat 28, 2005

ctx_doc.tokens

İndekslenen kelimeleri elde etmenin bir yolu:

show user
set serveroutput on size 1000000
--Yukarıdakı satır dbms tampon

--alan boyutunu arttırmak için
declare
spool theme
the_tokens ctx_doc.token_tab;
begin
--PRIMARY_KEY ya da ROWID tanımlanabilir.
ctx_doc.set_key_type('ROWID');
ctx_doc.tokens('temp_text_idx','1',the_tokens);

--Yukarıdakı 1 rakamı yerine rowid girmek gerekiyor
--Örneğin AAAKp1AAJAABDRIAAO
for i in 1..the_tokens.count loop
dbms_output.put_line(the_tokens(i).token);
end loop;
end;
/
spool off

Bu fonksiyon dokümanları sınıflandırma gibi çalışmalarda oldukça faydalı.

Hiç yorum yok: