Home » Server Options » Text & interMedia » Ctx_doc.ifilter problem
Ctx_doc.ifilter problem [message #230018] Tue, 10 April 2007 10:21 Go to previous message
losangelo
Messages: 2
Registered: April 2007
Junior Member
Hi!

I've been stuck with this problem for some days, searching the web (Google Is Your Friend by the way) and reading forums but with little avail, I did find this site and with some luck someone will answer me...so I come to you with this problem. I know it must be simple but I have little experience with PL SQL and things tend to become complex...

I have this procedure(based on this example: http://www.oracle.com/technology/products/text/x/samples/Indexing/Datastores/Ifilter/Cr_Concat_Blob.sql ) where I try to convert a BLOB to a CLOB using ctx_doc.Ifilter (and I think it should work) but I get always this cryptic error message: "Error 1: User-Defined Exception" and I can't make sense of it…maybe you can figure it out.

PROCEDURE MAKE_CLOB

   (p_rid in NUMBER,

    p_doc in out NOCOPY clob)

   IS

   v_title        varchar2 (200);

   v_buffer       varchar2 (4000);

   v_text_as_blob blob;

BEGIN

    select NOME, TEXT

    into v_title, v_text_as_blob

    from LB_MULTILANG_DOCS where DOC_ID = p_rid;

    v_buffer := '<mytitle>' || v_title || '</mytitle><mytext>';

    Dbms_Lob.write (p_doc, length(v_buffer ), 1, v_buffer);

    Ctx_Doc.Ifilter (v_text_as_blob, p_doc);

    v_buffer := '</mytext>' ;

    Dbms_Lob.writeappend (p_doc, length(v_buffer ),v_buffer);

    EXCEPTION

    WHEN OTHERS THEN

        dbms_output.put_line (SubStr( 'Error '||TO_CHAR (SQLCODE)|| ': '||SQLERRM , 1, 255));

END ;


I know the problem must be with the ctx_doc.ifilter because without it works fine.
(I also posted this problem in the I-Oracle lists and if I get some feedback I'll say something)

Thanks for your help
 
Read Message
Read Message
Read Message
Previous Topic: CONTAINS function not working!
Next Topic: How to create refine catsearch
Goto Forum:
  


Current Time: Thu Apr 18 19:44:53 CDT 2024