全文搜尋架構

這個主題呈現構成 ClearQuest 全文搜尋功能之元件的高階架構觀點。

全文搜尋功能使用了 Solr 搜尋伺服器和 Lucene 資訊擷取程式庫技術。下圖顯示構成全文搜尋實作的主要軟體元件。以下各節會說明這些元件。

本圖說明構成 ClearQuest 全文搜尋功能的主要軟體元件。其中有一個代表 WebSphere Application Server 的大矩形,連接至下方的 ClearQuest 資料庫。在 WebSphere Application Server 內執行的是從數個檔案讀取的一些程序。在 WebSphere Application Server 程序的左上部分是 ClearQuest Web Server 元件,其連接至 CM Server(其連接至 ClearQuest 核心程式)。ClearQuest 核心程式則連接至 ClearQuest 搜尋內容檔和 Solr 搜尋伺服器。Solr 應用程式包括 Solr 搜尋伺服器、Solr 綱目檔、Lucene 搜尋引擎,以及 Lucene 索引檔。ClearQuest 記錄擷取程式也位於 WebSphere Application Server 內。ClearQuest 記錄擷取程式會從 ClearQuest 搜尋內容檔和 ClearQuest 資料庫中讀取,並將 ClearQuest 記錄傳送給 Solr 搜尋伺服器以編製索引。

Solr 搜尋伺服器

Solr 搜尋伺服器是 ClearQuest 使用的基礎全文搜尋引擎。Solr 係安裝在 WebSphere Application Server 下,並由 WebSphere Application Server 管理。Solr 位於 Lucene 搜尋引擎之上,可讓您便於存取以配置、製作索引、搜尋及管理 Lucene 和其索引。如需 Solr 的相關資訊,請移至 http://lucene.apache.org/solr/

Solr 綱目檔

Solr 綱目檔會指定 Solr 製作索引的欄位。您會根據 ClearQuest 綱目來配置 Solr 設定。

Lucene 搜尋引擎

Lucene 搜尋引擎是 Apache Software Foundation 所支援的開放程式碼資訊擷取程式庫,且受「Apache 軟體授權」保護。如需 Lucene 的相關資訊,請移至 http://lucene.apache.org/java/

Lucene 索引檔

Lucene 索引檔是 Lucene 資訊擷取程式庫技術的基礎。該索引是由 ClearQuest 記錄擷取程式所建立。該索引會由從記錄擷取程式傳送給 Solr 的指令來更新,而 Solr 會依序將這些指令傳給 Lucene 搜尋引擎。

ClearQuest 記錄擷取程式

ClearQuest 記錄擷取程式會安裝成兩個元件:在 WebSphere Application Server 下執行的元件,以及指令行工具。雖然構成這兩個元件的軟體完全相同,但其用法不同。

指令行記錄擷取程式提供了批次擷取 ClearQuest 記錄的功能。其會由管理者啟動(通常是一次),以便從 ClearQuest 擷取現有的記錄,並將這些記錄傳給 Solr for Lucene 以製作索引。這種作業模式稱為批次模式記錄擷取。

作為 WebSphere Application Server 元件的記錄擷取程式提供了連續更新 Lucene 索引的功能。當您新增、修改或刪除新的 ClearQuest 記錄時,記錄擷取程式會將這些記錄傳送給 Solr for Lucene 製作索引。這種作業模式稱為更新模式記錄擷取。Lucene 製作完記錄的索引之後,該記錄就可利用 ClearQuest Web 全文搜尋使用者介面來搜尋。


意見