첫 등록일    : 2009-02-05
최종 수정일 : 2009-02-06
이 자료는 지속적으로 업데이트 됩니다.
------------------------------------------------------------
* 셋팅
exec ctx_ddl.create_preference('han_lexer','KOREAN_LEXER');
create index product_ctx on product(keywords) indextype is ctxsys.context PARAMETERS('lexer han_lexer');

* 싱크 인덱스
 ; 싱크 인덱스를 하지 않으면 업데이트를 해도 인터미디어 인덱스에 등록되지 않는다.
ctx_ddl.sync_index('product_ctx')

--> 따라서 해당 데이터를 업데이트 한 후 다음 문장 실행 혹은 트리거로 업데이트시 실행되도록 걸어둔다.
BEGIN ctx_ddl.sync_index('product_ctx'); END;

* 활용
CONTAINS (p.keywords, '검색어') > 0
검색어에 다음 문자 포함되면 에러
"[", "]", "{", "}", "(", ")", "$", "&", ".", "*", ",", "%", "-"
Posted by 곰!
,