URLで指定されたHTMLドキュメント・セットを索引付けする場合は、CREATE
INDEX
文でシステム定義プリファレンスであるNULL_FILTER
を指定できます。
HTML_SECTION_GROUP
を使用するセクション・グループhtmgroup
およびURL_DATASTORE
を使用するデータストアmy_url
を次のように指定できます。
begin ctx_ddl.create_preference('my_url','URL_DATASTORE'); ctx_ddl.set_attribute('my_url','HTTP_PROXY','www-proxy.us.example.com'); ctx_ddl.set_attribute('my_url','NO_PROXY','us.example.com'); ctx_ddl.set_attribute('my_url','Timeout','300'); end; begin ctx_ddl.create_section_group('htmgroup', 'HTML_SECTION_GROUP'); ctx_ddl.add_zone_section('htmgroup', 'heading', 'H1'); end;
ドキュメントを次のように索引付けできます。
CREATE INDEX myindex on docs(htmlfile) indextype is ctxsys.context parameters( 'datastore my_url filter ctxsys.null_filter section group htmgroup' );