45: end;
46:
47: procedure sync is
48: begin
49: ad_ctx_ddl.set_effective_schema('okc');
50: ad_ctx_ddl.sync_index('okc_articles_ctx');
51: exception when others then raise;
52: end;
53:
46:
47: procedure sync is
48: begin
49: ad_ctx_ddl.set_effective_schema('okc');
50: ad_ctx_ddl.sync_index('okc_articles_ctx');
51: exception when others then raise;
52: end;
53:
54: procedure optimize is
52: end;
53:
54: procedure optimize is
55: begin
56: ad_ctx_ddl.set_effective_schema('okc');
57: ad_ctx_ddl.optimize_index (
58: idx_name => 'okc_articles_ctx',
59: optlevel => ad_ctx_ddl.optlevel_full,
60: maxtime => ad_ctx_ddl.maxtime_unlimited
53:
54: procedure optimize is
55: begin
56: ad_ctx_ddl.set_effective_schema('okc');
57: ad_ctx_ddl.optimize_index (
58: idx_name => 'okc_articles_ctx',
59: optlevel => ad_ctx_ddl.optlevel_full,
60: maxtime => ad_ctx_ddl.maxtime_unlimited
61: );
55: begin
56: ad_ctx_ddl.set_effective_schema('okc');
57: ad_ctx_ddl.optimize_index (
58: idx_name => 'okc_articles_ctx',
59: optlevel => ad_ctx_ddl.optlevel_full,
60: maxtime => ad_ctx_ddl.maxtime_unlimited
61: );
62: exception when others then raise;
63: end;
56: ad_ctx_ddl.set_effective_schema('okc');
57: ad_ctx_ddl.optimize_index (
58: idx_name => 'okc_articles_ctx',
59: optlevel => ad_ctx_ddl.optlevel_full,
60: maxtime => ad_ctx_ddl.maxtime_unlimited
61: );
62: exception when others then raise;
63: end;
64:
295: begin
296: -- DATASTORE
297: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_DATASTORE preference creation ...');
298: begin
299: ad_ctx_ddl.drop_preference('okc_articles_datastore');
300: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_DATASTORE preference');
301: exception when others then
302: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_DATASTORE preference');
303: end;
300: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_DATASTORE preference');
301: exception when others then
302: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_DATASTORE preference');
303: end;
304: ad_ctx_ddl.create_preference('okc_articles_datastore','multi_column_datastore');
305: ad_ctx_ddl.set_attribute('okc_articles_datastore','columns',
306: apps||'.okc_article_keyword_pvt.article_title(article_version_id) art_title,
307: display_name art_disp, article_description art_descr, article_text art_text, additional_instructions art_instr');
308: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_DATASTORE preference has been created successfully as MULTI_COLUMN_DATASTORE');
301: exception when others then
302: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_DATASTORE preference');
303: end;
304: ad_ctx_ddl.create_preference('okc_articles_datastore','multi_column_datastore');
305: ad_ctx_ddl.set_attribute('okc_articles_datastore','columns',
306: apps||'.okc_article_keyword_pvt.article_title(article_version_id) art_title,
307: display_name art_disp, article_description art_descr, article_text art_text, additional_instructions art_instr');
308: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_DATASTORE preference has been created successfully as MULTI_COLUMN_DATASTORE');
309:
317: begin
318: -- SECTION GROUP
319: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS section group creation ...');
320: begin
321: ad_ctx_ddl.drop_section_group('okc_article_sections');
322: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLE_SECTIONS section group');
323: exception when others then
324: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLE_SECTIONS section group');
325: end;
322: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLE_SECTIONS section group');
323: exception when others then
324: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLE_SECTIONS section group');
325: end;
326: ad_ctx_ddl.create_section_group('okc_article_sections', 'BASIC_SECTION_GROUP');
327: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Title');
328: ad_ctx_ddl.add_field_section('okc_article_sections', 'Title', '
329: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Display');
330: ad_ctx_ddl.add_field_section('okc_article_sections', 'Display', '
324: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLE_SECTIONS section group');
325: end;
326: ad_ctx_ddl.create_section_group('okc_article_sections', 'BASIC_SECTION_GROUP');
327: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Title');
328: ad_ctx_ddl.add_field_section('okc_article_sections', 'Title', '
330: ad_ctx_ddl.add_field_section('okc_article_sections', 'Display', '
331: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Description');
332: ad_ctx_ddl.add_field_section('okc_article_sections', 'Description', '
326: ad_ctx_ddl.create_section_group('okc_article_sections', 'BASIC_SECTION_GROUP');
327: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Title');
328: ad_ctx_ddl.add_field_section('okc_article_sections', 'Title', '
329: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Display');
330: ad_ctx_ddl.add_field_section('okc_article_sections', 'Display', '
332: ad_ctx_ddl.add_field_section('okc_article_sections', 'Description', '
333: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Instruction');
334: ad_ctx_ddl.add_field_section('okc_article_sections', 'Instruction', '
328: ad_ctx_ddl.add_field_section('okc_article_sections', 'Title', '
329: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Display');
330: ad_ctx_ddl.add_field_section('okc_article_sections', 'Display', '
331: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Description');
332: ad_ctx_ddl.add_field_section('okc_article_sections', 'Description', '
334: ad_ctx_ddl.add_field_section('okc_article_sections', 'Instruction', '
335: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Text');
336: ad_ctx_ddl.add_field_section('okc_article_sections', 'Text', '
330: ad_ctx_ddl.add_field_section('okc_article_sections', 'Display', '
331: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Description');
332: ad_ctx_ddl.add_field_section('okc_article_sections', 'Description', '
333: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Instruction');
334: ad_ctx_ddl.add_field_section('okc_article_sections', 'Instruction', '
336: ad_ctx_ddl.add_field_section('okc_article_sections', 'Text', '
337: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS section group has been created successfully as BASIC_SECTION_GROUP');
338:
332: ad_ctx_ddl.add_field_section('okc_article_sections', 'Description', '
333: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Instruction');
334: ad_ctx_ddl.add_field_section('okc_article_sections', 'Instruction', '
335: fnd_file.put_line(fnd_file.log,'OKC_ARTICLE_SECTIONS: add field section Text');
336: ad_ctx_ddl.add_field_section('okc_article_sections', 'Text', '
338:
339: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 5, 18);
340:
346: begin
347: -- LEXER
348: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER preference creation ...');
349: begin
350: ad_ctx_ddl.drop_preference('okc_articles_lexer');
351: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_LEXER preference');
352: exception when others then
353: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_LEXER preference');
354: end;
351: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_LEXER preference');
352: exception when others then
353: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_LEXER preference');
354: end;
355: ad_ctx_ddl.create_preference('okc_articles_lexer','multi_lexer');
356: begin
357: ad_ctx_ddl.drop_preference('okc_blexer');
358: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_BLEXER preference');
359: exception when others then
353: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_LEXER preference');
354: end;
355: ad_ctx_ddl.create_preference('okc_articles_lexer','multi_lexer');
356: begin
357: ad_ctx_ddl.drop_preference('okc_blexer');
358: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_BLEXER preference');
359: exception when others then
360: fnd_file.put_line(fnd_file.log,'Creating new OKC_BLEXER preference');
361: end;
358: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_BLEXER preference');
359: exception when others then
360: fnd_file.put_line(fnd_file.log,'Creating new OKC_BLEXER preference');
361: end;
362: ad_ctx_ddl.create_preference('okc_blexer','basic_lexer');
363: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_themes=false');
364: ad_ctx_ddl.set_attribute('okc_blexer','index_themes','false');
365: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_text=true');
366: ad_ctx_ddl.set_attribute('okc_blexer','index_text','true');
360: fnd_file.put_line(fnd_file.log,'Creating new OKC_BLEXER preference');
361: end;
362: ad_ctx_ddl.create_preference('okc_blexer','basic_lexer');
363: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_themes=false');
364: ad_ctx_ddl.set_attribute('okc_blexer','index_themes','false');
365: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_text=true');
366: ad_ctx_ddl.set_attribute('okc_blexer','index_text','true');
367: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute base_letter=true');
368: ad_ctx_ddl.set_attribute('okc_blexer','base_letter','true');
362: ad_ctx_ddl.create_preference('okc_blexer','basic_lexer');
363: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_themes=false');
364: ad_ctx_ddl.set_attribute('okc_blexer','index_themes','false');
365: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_text=true');
366: ad_ctx_ddl.set_attribute('okc_blexer','index_text','true');
367: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute base_letter=true');
368: ad_ctx_ddl.set_attribute('okc_blexer','base_letter','true');
369: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute mixed_case=false');
370: ad_ctx_ddl.set_attribute('okc_blexer','mixed_case','false');
364: ad_ctx_ddl.set_attribute('okc_blexer','index_themes','false');
365: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute index_text=true');
366: ad_ctx_ddl.set_attribute('okc_blexer','index_text','true');
367: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute base_letter=true');
368: ad_ctx_ddl.set_attribute('okc_blexer','base_letter','true');
369: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute mixed_case=false');
370: ad_ctx_ddl.set_attribute('okc_blexer','mixed_case','false');
371: fnd_file.put_line(fnd_file.log,'OKC_BLEXER preference has been created as BASIC_LEXER');
372:
366: ad_ctx_ddl.set_attribute('okc_blexer','index_text','true');
367: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute base_letter=true');
368: ad_ctx_ddl.set_attribute('okc_blexer','base_letter','true');
369: fnd_file.put_line(fnd_file.log,'OKC_BLEXER: set attribute mixed_case=false');
370: ad_ctx_ddl.set_attribute('okc_blexer','mixed_case','false');
371: fnd_file.put_line(fnd_file.log,'OKC_BLEXER preference has been created as BASIC_LEXER');
372:
373: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 6, 18);
374:
373: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 6, 18);
374:
375: -- Chinese lexer
376: begin
377: ad_ctx_ddl.drop_preference('okc_clexer');
378: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_CLEXER preference');
379: exception when others then
380: fnd_file.put_line(fnd_file.log,'Creating new OKC_CLEXER preference');
381: end;
391: exception when others then
392: yes_no := 'N';
393: end;
394: if yes_no = 'Y' then
395: ad_ctx_ddl.create_preference('okc_clexer','chinese_lexer');
396: fnd_file.put_line(fnd_file.log,'OKC_CLEXER preference has been created as CHINESE_LEXER');
397: else
398: ad_ctx_ddl.create_preference('okc_clexer','chinese_vgram_lexer');
399: fnd_file.put_line(fnd_file.log,'OKC_CLEXER preference has been created as CHINESE_VGRAM_LEXER');
394: if yes_no = 'Y' then
395: ad_ctx_ddl.create_preference('okc_clexer','chinese_lexer');
396: fnd_file.put_line(fnd_file.log,'OKC_CLEXER preference has been created as CHINESE_LEXER');
397: else
398: ad_ctx_ddl.create_preference('okc_clexer','chinese_vgram_lexer');
399: fnd_file.put_line(fnd_file.log,'OKC_CLEXER preference has been created as CHINESE_VGRAM_LEXER');
400: end if;
401:
402: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 7, 18);
404: end;
405:
406: -- Japanese lexer
407: begin
408: ad_ctx_ddl.drop_preference('okc_jlexer');
409: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_JLEXER preference');
410: exception
411: when others then
412: fnd_file.put_line(fnd_file.log,'Creating new OKC_JLEXER preference');
424: when others then
425: yes_no := 'N';
426: end;
427: if yes_no = 'Y' then
428: ad_ctx_ddl.create_preference('okc_jlexer','japanese_lexer');
429: fnd_file.put_line(fnd_file.log,'OKC_JLEXER preference has been created as JAPANESE_LEXER');
430: else
431: ad_ctx_ddl.create_preference('okc_jlexer','japanese_vgram_lexer');
432: fnd_file.put_line(fnd_file.log,'OKC_JLEXER preference has been created as JAPANESE_VGRAM_LEXER');
427: if yes_no = 'Y' then
428: ad_ctx_ddl.create_preference('okc_jlexer','japanese_lexer');
429: fnd_file.put_line(fnd_file.log,'OKC_JLEXER preference has been created as JAPANESE_LEXER');
430: else
431: ad_ctx_ddl.create_preference('okc_jlexer','japanese_vgram_lexer');
432: fnd_file.put_line(fnd_file.log,'OKC_JLEXER preference has been created as JAPANESE_VGRAM_LEXER');
433: end if;
434:
435: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 8, 18);
437: end;
438:
439: -- Korean lexer
440: begin
441: ad_ctx_ddl.drop_preference('okc_klexer');
442: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_KLEXER preference');
443: exception when others then
444: fnd_file.put_line(fnd_file.log,'Creating new OKC_KLEXER preference');
445: end;
455: exception when others then
456: yes_no := 'N';
457: end;
458: if yes_no = 'Y' then
459: ad_ctx_ddl.create_preference('okc_klexer', 'korean_morph_lexer');
460: fnd_file.put_line(fnd_file.log,'OKC_KLEXER preference has been created as KOREAN_MORPH_LEXER');
461: else
462: ad_ctx_ddl.create_preference('okc_klexer', 'korean_lexer');
463: fnd_file.put_line(fnd_file.log,'OKC_KLEXER preference has been created as KOREAN_LEXER');
458: if yes_no = 'Y' then
459: ad_ctx_ddl.create_preference('okc_klexer', 'korean_morph_lexer');
460: fnd_file.put_line(fnd_file.log,'OKC_KLEXER preference has been created as KOREAN_MORPH_LEXER');
461: else
462: ad_ctx_ddl.create_preference('okc_klexer', 'korean_lexer');
463: fnd_file.put_line(fnd_file.log,'OKC_KLEXER preference has been created as KOREAN_LEXER');
464: end if;
465: fnd_file.put_line(fnd_file.log,'OKC_KLEXER: set attribute one_char_word=true');
466: ad_ctx_ddl.set_attribute('okc_klexer', 'one_char_word', 'true');
462: ad_ctx_ddl.create_preference('okc_klexer', 'korean_lexer');
463: fnd_file.put_line(fnd_file.log,'OKC_KLEXER preference has been created as KOREAN_LEXER');
464: end if;
465: fnd_file.put_line(fnd_file.log,'OKC_KLEXER: set attribute one_char_word=true');
466: ad_ctx_ddl.set_attribute('okc_klexer', 'one_char_word', 'true');
467: fnd_file.put_line(fnd_file.log,'OKC_KLEXER: set attribute number=true');
468: ad_ctx_ddl.set_attribute('okc_klexer', 'number', 'true');
469:
470: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 9, 18);
464: end if;
465: fnd_file.put_line(fnd_file.log,'OKC_KLEXER: set attribute one_char_word=true');
466: ad_ctx_ddl.set_attribute('okc_klexer', 'one_char_word', 'true');
467: fnd_file.put_line(fnd_file.log,'OKC_KLEXER: set attribute number=true');
468: ad_ctx_ddl.set_attribute('okc_klexer', 'number', 'true');
469:
470: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 9, 18);
471:
472: end;
472: end;
473:
474: -- sublexers
475: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer default=okc_blexer');
476: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','default','okc_blexer');
477: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ja=okc_jlexer');
478: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ja','okc_jlexer');
479: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ko=okc_klexer');
480: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ko','okc_klexer');
474: -- sublexers
475: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer default=okc_blexer');
476: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','default','okc_blexer');
477: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ja=okc_jlexer');
478: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ja','okc_jlexer');
479: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ko=okc_klexer');
480: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ko','okc_klexer');
481: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zhs=okc_clexer');
482: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zhs','okc_clexer');
476: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','default','okc_blexer');
477: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ja=okc_jlexer');
478: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ja','okc_jlexer');
479: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ko=okc_klexer');
480: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ko','okc_klexer');
481: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zhs=okc_clexer');
482: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zhs','okc_clexer');
483: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zht=okc_clexer');
484: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zht','okc_clexer');
478: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ja','okc_jlexer');
479: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer ko=okc_klexer');
480: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ko','okc_klexer');
481: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zhs=okc_clexer');
482: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zhs','okc_clexer');
483: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zht=okc_clexer');
484: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zht','okc_clexer');
485: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER preference has been created as MULTI_LEXER');
486:
480: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','ko','okc_klexer');
481: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zhs=okc_clexer');
482: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zhs','okc_clexer');
483: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER: add sublexer zht=okc_clexer');
484: ad_ctx_ddl.add_sub_lexer('okc_articles_lexer','zht','okc_clexer');
485: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_LEXER preference has been created as MULTI_LEXER');
486:
487: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 10, 18);
488:
493: -- -------------------------------------------------------------------
494: begin
495: -- STOPLIST
496: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_STOPLIST preference creation ...');
497: ad_ctx_ddl.create_stoplist ('okc_articles_stoplist', 'multi_stoplist');
498: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_STOPLIST preference has been created as MULTI_STOPLIST');
499: exception when others then
500: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_STOPLIST preference already exists');
501: end;
508: begin
509: -- WORDLIST
510: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST preference creation ...');
511: begin
512: ad_ctx_ddl.drop_preference('okc_articles_wordlist');
513: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_WORDLIST preference');
514: exception when others then
515: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_WORDLIST preference');
516: end;
513: fnd_file.put_line(fnd_file.log,'Re-creating old OKC_ARTICLES_WORDLIST preference');
514: exception when others then
515: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_WORDLIST preference');
516: end;
517: ad_ctx_ddl.create_preference('okc_articles_wordlist','basic_wordlist');
518: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute stemmer=auto');
519: ad_ctx_ddl.set_attribute('okc_articles_wordlist','stemmer','auto');
520: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute fuzzy_match=auto');
521: ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_match','auto');
515: fnd_file.put_line(fnd_file.log,'Creating new OKC_ARTICLES_WORDLIST preference');
516: end;
517: ad_ctx_ddl.create_preference('okc_articles_wordlist','basic_wordlist');
518: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute stemmer=auto');
519: ad_ctx_ddl.set_attribute('okc_articles_wordlist','stemmer','auto');
520: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute fuzzy_match=auto');
521: ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_match','auto');
522: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_index=true');
523: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_index','true');
517: ad_ctx_ddl.create_preference('okc_articles_wordlist','basic_wordlist');
518: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute stemmer=auto');
519: ad_ctx_ddl.set_attribute('okc_articles_wordlist','stemmer','auto');
520: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute fuzzy_match=auto');
521: ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_match','auto');
522: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_index=true');
523: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_index','true');
524: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_min_length=3');
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
519: ad_ctx_ddl.set_attribute('okc_articles_wordlist','stemmer','auto');
520: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute fuzzy_match=auto');
521: ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_match','auto');
522: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_index=true');
523: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_index','true');
524: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_min_length=3');
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
521: ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_match','auto');
522: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_index=true');
523: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_index','true');
524: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_min_length=3');
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
528: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_score',60);
529: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_numresults',100);
523: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_index','true');
524: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_min_length=3');
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
528: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_score',60);
529: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_numresults',100);
530: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','substring_index','true');
531: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST preference has been created as BASIC_WORDLIST');
524: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_min_length=3');
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
528: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_score',60);
529: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_numresults',100);
530: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','substring_index','true');
531: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST preference has been created as BASIC_WORDLIST');
532:
525: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_min_length',3);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
528: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_score',60);
529: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_numresults',100);
530: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','substring_index','true');
531: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST preference has been created as BASIC_WORDLIST');
532:
533: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 12, 18);
526: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST: set attribute prefix_max_length=5');
527: ad_ctx_ddl.set_attribute('okc_articles_wordlist','prefix_max_length',5);
528: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_score',60);
529: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','fuzzy_numresults',100);
530: -- ad_ctx_ddl.set_attribute('okc_articles_wordlist','substring_index','true');
531: fnd_file.put_line(fnd_file.log,'OKC_ARTICLES_WORDLIST preference has been created as BASIC_WORDLIST');
532:
533: dbms_application_info.set_session_longops( rindex, slno, null, request_id, request_id, 12, 18);
534: