

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Neptune 至 OpenSearch 的複寫
<a name="full-text-search-cfn-setup"></a>

Amazon Neptune 支援使用 Amazon OpenSearch Service (OpenSearch Service) 在 Gremlin 和 SPARQL 查詢中進行全文檢索搜尋。您可以使用 AWS CloudFormation 堆疊將 OpenSearch Service 網域連結至 Neptune。 CloudFormation 範本會建立提供 Neptune-to-OpenSearch 複寫的串流消費者應用程式執行個體。

在開始之前，您需要一個已啟用串流的現有 Neptune 資料庫叢集做為來源，以及一個 OpenSearch Service 網域做為複寫目標。

如果您 Neptune 資料庫叢集所在的 VPC 中，已有可供 Lambda 存取的現有目標 OpenSearch Service 網域，則範本可使用該網域。否則，您需要建立一個新的網域。

**注意**  
您建立的 OpenSearch 叢集和 Lambda 函數必須位於與 Neptune 資料庫叢集相同的 VPC 中，且 OpenSearch 叢集必須是在 VPC 模式 (而非網際網路模式) 中設定。

建議您使用新建立的 Neptune 執行個體與 OpenSearch Service 搭配使用。如果您使用其中已有資料的現有執行個體，則應該在進行查詢之前先執行 OpenSearch Service 資料同步，否則可能會發生資料不一致。這個 GitHub 專案提供如何執行同步的範例：[將 Neptune 匯出至 OpenSearch](https://github.com/awslabs/amazon-neptune-tools/tree/master/export-neptune-to-elasticsearch) (https://github.com/awslabs/amazon-neptune-tools/tree/master/export-neptune-to-elasticsearch)。

**重要**  
與 Amazon OpenSearch Service 整合時，Neptune 需要 Elasticsearch 7.1 版或更高版本，並會使用 OpenSearch 2.3、2.5，以及未來相容的 Opensearch 版本。

**注意**  
從[引擎版本 1.3.0.0](engine-releases-1.3.0.0.md) 開始，Amazon Neptune 支援使用 [Amazon OpenSearch Service Serverless](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless.html) 在 Gremlin 和 SPARQL 查詢中進行全文檢索搜尋。

**Topics**
+ [使用 AWS CloudFormation 範本啟動 Neptune-to-OpenSearch 複寫](full-text-search-cfn-create.md)
+ [在現有的 Neptune 資料庫上啟用全文檢索搜尋](full-text-search-cfn-enabling.md)
+ [更新串流輪詢器](full-text-search-cfn-update-poller.md)
+ [停用和重新啟用串流輪詢器程序](full-text-search-using-pausing-poller.md)