此场景将模式存储库与名为 TextSearch 的连接和名为 SAMPL 的用户数据库一起使用。 路径规范假设您正在 Windows 操作系统上运行。如果正在 UNIX 系统或 Linux 上运行,请进行适当的替换。
cqperl cqtsadmin.pl --username admin --password secret --dbset TextSearch --userdb SAMPL --ftshome D:\CQ.Search --init_cq_fts --create_fts_was_profile automatic --fts_was_profile_home D:\CQFTS.WASprofiles
此命令完成后,对应于您的模式的配置数据将放置在以下目录中:D:\CQ.Search\TextSearch_SAMPL\Customer=Attachment,CallTrackingID,Name,Phone,...
Defect=Attachments,Description,Headline,Keywords,...
Email_Rule=Action_types,Actions,Name,Operator_Value,...
Project=Description,Name,dbid,...
Customer=Attachment,CallTrackingID,&Name,Phone,...
Defect=Attachments,Description,&Headline,Keywords,...
Email_Rule=Action_types,Actions,&Name,Operator_Value,...
Project=Description,&Name,dbid,...
<newValue required="no"></newValue>
更改为:
<newValue required="no">60</newValue>
这会将更新方式索引延迟的缺省值从 10 分钟(600 秒)更改为 60 秒,表示大约需要 60 秒使您对记录所做的更改显示在全文搜索结果集中。
<newValue required="no"></newValue>
更改为:
<newValue required="no">10</newValue>
这将在发出 ClearQuest 帐户重新登录之前,将更新方式记录抽取的循环数从缺省值 1 更改为 10。
cqperl cqtsadmin.pl --username admin --password secret --dbset TextSearch --userdb SAMPL --ftshome D:\CQ.Search --setup_cq_fts
fts-was-profile-home/profile-name/bin/startServer.sh
其中的变量分别为:/opt/CQFTS.WASprofiles/cqfts_TextSearch_SAMPL/bin/startServer.sh server1 -profileName cqfts_TextSearch_SAMPL
您已对 SAMPL 数据库启用全文搜索。