ITPub博客

首页 > 数据库 > Oracle > 利用Ultra Search创建自己的桌面文档搜索系统

利用Ultra Search创建自己的桌面文档搜索系统

原创 Oracle 作者:rainytag 时间:2007-06-21 20:25:43 0 删除 编辑

以下是创建步骤(安装Ultra Search过程参见我的另外一篇文章《安装配置ultra search》):

  1. 创建一个数据库用户

Sqlplus “/as sysdba”

SQL> Create user demo identified by demo;

SQL> grant WKUSER to demo;

  1. 启动Ultra Search

Searchctl start

  1. 登录http://localhost:5620/ultrasearch/admin/

User Name: WKSYS

Password: WKSYS

  1. 创建Instance

Admin->Instance->Create->Create Instance

内容如下:

New Instance Name: Demo_Inst

Database Schema: Demo

Schema Password: Demo

点击Apply

  1. 用demo登录http://localhost:5620/ultrasearch/admin/

User Name: demo

Password: demo

  1. 选择demo_inst,点击Apply

  1. 配置crawler

Crawler->setting

内容如下:

Number of Crawler Threads: 20

Number of Processors: 1

Enable Language Detection: Yes

Default Language: Chinese

Crawling Depth: No Limit

Crawler Timeout Threshold (in seconds): 30

Default Character Set: GB2312-80 Simplified Chinese

Cache Directory Location (Absolute Path): ORA_HOMEultrasearchcache (ORA_HOME就是安装Oracle的目录)

Start Indexing Every: 5 megabytes

Clear Cache After Indexing: No

Level of Detail: Everything

Crawler Log File Directory:

C:oracleproduct10.2.0db_1ultrasearchlog

Crawler Log File Language: English

Database Connect String: [hostname]:[port]:[sid] (例如:localhost:1521:ORA10)

点击Apply

  1. 配置Sources

Sources->File->Create File Source

Name: Desk_files

Default Language: Chinese

点击Process to Step 2

在输入框中填入你的文档路径,比如file:///C:/Documents

点击ADD

点击Process to Step 3

这一步中的内容不用填

点击Process to Step 4

选择文档类型,将你文档目录下需要搜索的文档的类型选中,

点击Process to Step 5

Use file display URL

File URL Prefix: file:///

Display URL Prefix: file:///

点击NEXT

点击NEXT

点击FINISH

  1. 配置Schedules

Schedules->Create New Schedule

Name: Desk_file_sche

点击NEXT

Frequency Type: Daily

Time Between Launches (days): 1

Schedule Launching Time: 1:00 AM

Automatically Accept All URLs for Indexing

Select a Crawler Host: Database Host

点击Process to Step 3

Get Available Sources for Type: File

点击Get Sources

选择Desk_files到右边列表

点击Finish

  1. 同步索引

选择Schedules页

找到刚才创建的schedule项:Every day at 01:00 o'clock

点击status列中的Scheduled

点击Execute Immediately

不断点击Refresh Status,直到status为Scheduled.

  1. 配置完毕

打开网页:http://localhost:5620/ultrasearch/query/search.jsp就可以搜索你的文档了。

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9650775/viewspace-920328/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-01-01

  • 博文量
    652
  • 访问量
    2207517