-rebuildTextIndices

這個指令用來重建資料庫文字索引。

用途

Jazz™ Team Server 可管理的目錄,位於資料庫外且儲存處理全文查詢所需的所有資料。目錄的位置配置在 teamserver.properties 檔中。因此,當執行 -rebuildTextIndices 指令時,會在該內容檔指示的位置中建立全文目錄。

利用這個指令,就可以建立這種目錄,並且重新檢索資料庫中的所有構件,讓它們可以利用全文查詢來搜尋。下列清單所列的實務,就可能需要建立資料庫,並且重新檢索構件:
  • 伺服器已移至新位置,但未複製全文目錄,因而必須重建全文目錄。
  • 將新的 Jazz 伺服器設定成使用現有的資料庫,但由於出現新的 teamserver.properties 檔,因此全文目錄會採用新的位置。
註: 當從某一版升級至另一版時,並不需要執行這個指令,因為會重建全文索引。
記住: 這個指令會要求先關閉伺服器。

參數

屬性 說明 必要 預設值
teamserver.properties teamserver.properties 檔的檔案系統路徑。 否 conf/<application>/teamserver.properties
logFile 日誌檔的路徑。 否 repotools-<application>_rebuildTextIndices.log

範例

repotools-<application> -rebuildTextIndices teamserver.properties=conf/jts/teamserver.properties

意見