此實務範例搭配使用綱目儲存庫與名稱為 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,...groups=dbid,is_active,lock_version,name,...
users=dbid,email,encrypted_password,fullname,...
Customer=Attachment,CallTrackingID,&Name,Phone,...
Defect=Attachments,Description,&Headline,Keywords,...
Email_Rule=Action_types,Actions,&Name,Operator_Value,...
Project=Description,&Name,dbid,...groups=dbid,is_active,lock_version,&name,...
users=dbid,email,encrypted_password,&fullname,...
<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 資料庫啟用全文搜尋。