Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Problems setting up ConText Section Searching

Problems setting up ConText Section Searching

From: David Munsey-Kano <David.Munsey-Kano_at_dartmouth.edu>
Date: Thu, 06 Jan 2000 13:12:23 -0500
Message-ID: <3874DB07.74EDCFB7@dartmouth.edu>


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 sentence
searching', 'BASIC LEXER');
	ctx_ddl.set_attribute('KEEP_TAG', 'P', 1);
	ctx_ddl.create_preference('dag_filter','dag search filt','HTML
FILTER');         
	ctx_ddl.create_section_group('dag_section_group2');
	ctx_ddl.add_section('dag_section_group2', 'policy', 'policy:',

':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,
false); ctx_ddl.create_policy('ctx_dag_policy_policy2','admin_guide_main.policy', lexer_pref => 'basic_sentence_se', filter_pref => 'dag_filter', wordlist_pref => 'dag_word_list2');

         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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US