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

以下是创建步骤(安装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,直到statusScheduled.

  1. 配置完毕

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

[@more@]

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

转载于:http://blog.itpub.net/9650775/viewspace-920328/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值