Updating an existing Neptune full-text search stack to support non-string indexing
If you are already using Neptune full-text search, here are the steps you need to take to support non-string indexing:
-
Stop the stream poller Lambda function. This ensures that no new updates are copied during export. Do this by disabling the cloud event rule that invokes the Lambda function:
In the Amazon Web Services Management Console, navigate to CloudWatch.
Select Rules.
Choose the rule with the Lambda stream poller name.
Select disable to temporarily disable the rule.
-
Delete the current Neptune index in OpenSearch. Use the following
curl
query to delete theamazon_neptune
index from your OpenSearch cluster:curl -X DELETE "
your OpenSearch endpoint
/amazon_neptune" -
Start a one-time export from Neptune to OpenSearch. It is best to set up a new OpenSearch stack at this point, so that new artifacts are picked up for the poller that performs the export.
Follow the steps listed here in GitHub
to start the one-time export of your Neptune data into OpenSearch. -
Update the Lambda artifacts for the existing stream poller. After the export of Neptune data to OpenSearch has completed successfully, take the following steps:
In the Amazon Web Services Management Console, navigate to Amazon CloudFormation.
Choose the main parent Amazon CloudFormation stack.
Select the Update option for that stack.
Select Replace current template from options.
For the template source, select Amazon S3 URL.
-
For the Amazon S3 URL, enter:
https://aws-neptune-customer-samples.s3.amazonaws.com/neptune-stream/neptune_to_elastic_search.json
Choose Next without changing any of the Amazon CloudFormation parameters.
Select Update stack. Amazon CloudFormation will replace the Lambda code artifacts for the stream poller with the latest artifacts.
-
Start the stream poller again. Do this by enabling the appropriate CloudWatch rule:
In the Amazon Web Services Management Console, navigate to CloudWatch.
Select Rules.
Choose the rule with the Lambda stream poller name.
Select enable.