aws AWS Big Data Blog ·

AWS guide for migrating from Amazon CloudSearch to OpenSearch Serverless

blogdataawsarchitect
announcement

AWS has published a detailed guide to help users transition their search workloads from Amazon CloudSearch to Amazon OpenSearch Serverless. OpenSearch Serverless provides modern capabilities like semantic and hybrid search, RAG, and automatic scaling, offering a significant upgrade over CloudSearch. The guide is crucial for existing CloudSearch users looking to modernize their search infrastructure, detailing configuration assessment, data and query conversion, security policy setup, and data ingestion via OpenSearch Ingestion. It covers the entire migration lifecycle from planning to cutover and validation.

  • OpenSearch Serverless advantages and migration overview
  • Key differences and migration prerequisites
  • Planning the CloudSearch to OpenSearch Serverless migration
  • Modeling data and mapping field types in OpenSearch Service
  • Converting and re-ingesting data into OpenSearch Serverless
Notes (5)
  • OpenSearch Serverless advantages and migration overview

    Amazon OpenSearch Serverless offers modern search capabilities such as semantic search, Retrieval Augmented Generation (RAG), and agentic search, with automatic scaling and a pay-as-you-go model. The migration process from CloudSearch involves assessing existing configurations, converting data and queries, configuring security, loading data with Amazon OpenSearch Ingestion, and validating the setup.

  • Key differences and migration prerequisites

    OpenSearch Serverless scales indexing and search compute independently, potentially scaling to zero when idle, and features a layered security model with separate encryption, network, and data access policies. Prerequisites for migration include an AWS account, an active Amazon CloudSearch domain with indexed data, source data available in a durable store like S3 or DynamoDB, and appropriate IAM permissions.

  • Planning the CloudSearch to OpenSearch Serverless migration

    Effective migration planning involves thoroughly documenting the existing CloudSearch configuration, including instance type, partition and replication counts, total document count, data size, field definitions, analyzers, and API version. The guide also helps determine if OpenSearch Serverless is the most suitable target, or if a managed OpenSearch Service cluster is better for workloads requiring very low latency or direct instance control.

  • Modeling data and mapping field types in OpenSearch Service

    When creating an index in OpenSearch Serverless, it is essential to explicitly define index mappings by converting CloudSearch field types to their OpenSearch Service equivalents. The guide recommends using the narrowest possible numeric types for efficiency and adding keyword sub-fields for text fields that require sorting or aggregation.

  • Converting and re-ingesting data into OpenSearch Serverless

    Since Amazon CloudSearch does not provide built-in backup or snapshot features, migrating data involves re-ingesting it from a durable source like Amazon S3 or Amazon DynamoDB. This process requires transforming CloudSearch's Source Data Format (SDF) JSON or XML documents into a format compatible with OpenSearch Service.

Read the original announcement →

https://aws.amazon.com/blogs/big-data/how-to-migrate-from-amazon-cloudsearch-to-amazon-opensearch-serverless/

Related releases