Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Problems setting up ConText Section Searching
I am new to ConText. I have managed to setup ConText indexes and perform
successful queries. Now I am looking at changing my implementation from
having separate (some LONG) character fields to one LONG field and use
the Document Sections (user defined) feature. I have yet to get any
WITHIN search to work, even for the basic WITHIN SENTENCE syntax, even
though I am following the documentation.
Here is what I am executing:
BEGIN
ctx_ddl.set_attribute('SENT_PARA', 1); ctx_ddl.set_attribute('CONTINUATION', '-\'); ctx_ddl.set_attribute('PUNCTUATIONS', '.!?'); ctx_ddl.set_attribute('NUMGROUP', '.,'); ctx_ddl.set_attribute('PRINTJOINS', '-_'); ctx_ddl.set_attribute('NEWLINE', '\n'); ctx_ddl.set_attribute('WHITESPACE', ' \t'); ctx_ddl.set_attribute('STARTJOINS', '</'); ctx_ddl.set_attribute('ENDJOINS', '>'); ctx_ddl.create_preference('basic_sentence_se', 'enable sentencesearching', 'BASIC LEXER');
ctx_ddl.set_attribute('KEEP_TAG', 'P', 1); ctx_ddl.create_preference('dag_filter','dag search filt','HTMLFILTER');
ctx_ddl.create_section_group('dag_section_group2'); ctx_ddl.add_section('dag_section_group2', 'policy', 'policy:',false);
':policy', true, false);
ctx_ddl.add_section('dag_section_group2', 'services', 'provided:',
':provided', true, false);
ctx_ddl.add_section('dag_section_group2', 'contact', 'information:',
':information', true, false);
ctx_ddl.add_section('dag_section_group2', 'procedures', 'required:',
':required', true, false);
ctx_ddl.add_section('dag_section_group2', 'definitions', 'definitions:', ':definitions', true, false); ctx_ddl.add_section('dag_section_group2', 'hours', 'operation:',
':operation', true, false);
ctx_ddl.add_section('dag_section_group2', 'charges', 'charges:',
':charges', true, false);
ctx_ddl.add_section('dag_section_group2', 'oversight', 'oversight:',
':oversight', true, false);
ctx_ddl.add_section('dag_section_group2', 'related', 'documents:',
':documents', true, false);
ctx_ddl.add_section('dag_section_group2', 'para', '<p>', '</p>', false,
ctx_ddl.create_index('ctx_dag_policy_policy'); END; The resulting error message is:
ORA-20000: ConText error:
DRG-00100: internal error, arguments :
[51001],[CTX:[SRC.DR.DRWA]DRWA.C;1],[402],[1227],[]
DRG-00100: internal error, arguments :
[51002],[CTX:[SRC.DR.DRWA]DRWAO.C;1],[406],[],[]
DRG-00100: internal error, arguments :
[51027],[CTX:[SRC.DR.DRWA]DRWAN.C;1],[218],[OPS$MUNSEYKANO_D.DAG_SECTION_GROUP2],[]
ORA-01480: trailing null missing from STR bind value ORA-06512: at "CTXSYS.DRUE", line 180 ORA-06512: at "CTXSYS.CTX_DDL", line 94 ORA-06512: at line 3
After some experimentation, I have determined that this error message is coming from the last function in my procedure: ctx_ddl.create_index()
Before I added the user defined section setup, I tried the WITHIN SENTENCE syntax and it found rows that contained my terms that were not in the same sentence.
If anyone has experience with ConText and can help I would appreciate it very much.
Thanks,
--
David Munsey-Kano
Dartmouth College
(603) 646-1320
Murphy was a liar, not a lawyer! Received on Thu Jan 06 2000 - 12:12:23 CST
![]() |
![]() |