diff --git a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx index 285377e3844..96a84fe2088 100644 --- a/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx +++ b/src/pages/gen1/[platform]/build-a-backend/graphqlapi/troubleshooting/index.mdx @@ -48,7 +48,7 @@ If you're running into the error above during `amplify push`, it is likely that When you add `@searchable` to a `@model` type with existing data, then you need to backfill the OpenSearch index. Download the following Python script to help you backfill your OpenSearch index: -[DynamoDB to OpenSearch backfill script](https://raw.githubusercontent.com/aws-amplify/amplify-category-api/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) +[DynamoDB to OpenSearch backfill script](https://raw.githubusercontent.com/aws-amplify/amplify-category-api/release-api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) The script creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. Execute the script with the following parameters to initiate the backfill: diff --git a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx index d0133e5b0ea..888301aefcf 100644 --- a/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx +++ b/src/pages/gen1/[platform]/tools/cli-legacy/searchable-directive/index.mdx @@ -38,7 +38,7 @@ export function getStaticProps(context) { The `@searchable` directive handles streaming the data of an `@model` object type to the Amazon OpenSearch Service and configures search resolvers that search that information. -> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). +> **Migration warning**: You might observe duplicate records on search operations, if you deployed your GraphQL schema using CLI version older than 4.14.1 and have thereafter updated your schema & deployed the changes with a CLI version between 4.14.1 - 4.16.1. Please use this Python [script](https://github.com/aws-amplify/amplify-category-api/blob/release-api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) to remove the duplicate records from your OpenSearch cluster. [This script](https://github.com/aws-amplify/amplify-category-api/blob/release-api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) indexes data from your DynamoDB Table to your OpenSearch Cluster. View an example of how to call the script with the following parameters [here](https://aws-amplify.github.io/docs/cli-toolchain/graphql#example-of-calling-the-script). > **Billing warning**: `@searchable` incurs an additional cost depending on instance size. For more information refer to the [Amazon OpenSearch service pricing](https://aws.amazon.com/elasticsearch-service/pricing/). @@ -201,7 +201,7 @@ Learn more about Amazon OpenSearch Service instance types [here](https://docs.aw ### Backfill your OpenSearch index from your DynamoDB table -The following Python [script](https://github.com/aws-amplify/amplify-category-api/blob/api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. This will help you backfill your data should you choose to add `@searchable` to your @model types at a later time. +The following Python [script](https://github.com/aws-amplify/amplify-category-api/blob/release-api-plugin-stable/packages/graphql-elasticsearch-transformer/scripts/ddb_to_es.py) creates an event stream of your DynamoDB records and sends them to your OpenSearch Index. This will help you backfill your data should you choose to add `@searchable` to your @model types at a later time. **Example of calling the script**: