C.4 BASIC_LEXER Example: Setting Printjoin Characters
Printjoin characters are nonalphanumeric characters that are to be included in index tokens, so that words such as vice-president are indexed as vice-president.
The following example sets printjoin characters to be the hyphen and underscore with BASIC_LEXER:
begin ctx_ddl.create_preference('mylex', 'BASIC_LEXER'); ctx_ddl.set_attribute('mylex', 'printjoins', '_-'); end;
Create the index with printjoins characters set as previously shown:
create index myindex on mytable ( docs ) indextype is ctxsys.context parameters ( 'LEXER mylex' );