C.4 BASIC_LEXER例: printjoin文字の設定
printjoin文字は、索引トークンに組み込まれる英数字以外の文字を指します。vice-presidentのようなワードを、vice-presidentとして索引付けする場合に使用します。
次の例では、BASIC_LEXER
を使用して、printjoin文字をハイフンとアンダースコアに設定します。
begin ctx_ddl.create_preference('mylex', 'BASIC_LEXER'); ctx_ddl.set_attribute('mylex', 'printjoins', '_-'); end;
前述のように、printjoin文字を設定した索引を作成します。
create index myindex on mytable ( docs ) indextype is ctxsys.context parameters ( 'LEXER mylex' );