# Migrating Elasticsearch Mappings to Azure Cosmos DB

DevFeed: [Migrating Elasticsearch Mappings to Azure Cosmos DB](<https://devfeed.tech/articles/migrating-elasticsearch-mappings-to-azure-cosmos-db-63195.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/cosmosdb/migrating-elasticsearch-mappings-to-azure-cosmos-db/>)

Author: Madeline Egan

Published: 2026-10-01T07:00:57Z

Content type: tutorial

Language: en

Sources: [Azure Cosmos DB Blog](<https://devfeed.tech/sources/azure-cosmos-db-blog.md>)

Topics: [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [Azure](<https://devfeed.tech/topics/azure.md>), [schema design](<https://devfeed.tech/topics/schema-design.md>), [azure functions](<https://devfeed.tech/topics/azure-functions.md>)

Tags: [azure-cosmos-db](<https://devfeed.tech/tags/azure-cosmos-db.md>), [azure-cosmos-db-for-nosql](<https://devfeed.tech/tags/azure-cosmos-db-for-nosql.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [full-text-search](<https://devfeed.tech/tags/full-text-search.md>), [migration](<https://devfeed.tech/tags/migration.md>), [schema](<https://devfeed.tech/tags/schema.md>)

## AI overview

The article explains how to migrate Elasticsearch mappings to Azure Cosmos DB container configuration. It recommends translating each field according to how the application queries it, using indexing, full-text, vector, and computed-property policies to preserve behavior. It also outlines inventory, policy design, validation, and rollout steps.

## Source excerpt

This post focuses on one of the most important design tasks when migrating from Elasticsearch to Azure Cosmos DB: translating an Elasticsearch mapping into Azure Cosmos DB container configuration. In Elasticsearch, a mapping defines how document fields are stored and indexed. Azure Cosmos DB is schema-agnostic, so there is no single mapping document to translate. [...] The post Migrating Elasticsearch Mappings to Azure Cosmos DB appeared first on Azure Cosmos DB Blog.