Home icon

Building search experiences for JSON data with Amazon OpenSearch Service

Database Blog



This article demonstrates how to use Amazon OpenSearch Service as a discovery layer for JSON data, combining full-text, vector, and geospatial search in a single query using a restaurant discovery app example.

  • OpenSearch Service indexes each JSON field independently with per-field strategies: text, vectors, keywords, or geospatial points.
  • Nested objects and arrays preserve structure, enabling accurate queries across distinct items without collapsing boundaries.
  • Schema is flexible yet controllable, supporting auto-mapping or strict validation without requiring migrations.
  • Query language is JSON, mirroring document structure for readable and programmatically constructible complex queries.
  • Functions as a discovery layer on top of DynamoDB, DocumentDB, Aurora, and S3 via Change Data Capture pipelines.
  • Hybrid queries combine multi_match text search, neural vector search, and geo_distance filters with efficient inline filtering.
  • Best practices include routing non-relevance constraints through cached filters, using multi-field mappings, and setting index:false for display-only fields.

OpenSearch Service provides transactional database guarantees alongside search intelligence, enabling context-aware results from richly structured data without specialized system integration.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Aug 31
2026
Measuring and improving search quality with Amazon OpenSearch Service
Jun 19
2024
Amazon OpenSearch Service now supports JSON Web Token (JWT) authentication and authorization
Jul 30
2026
Amazon OpenSearch Service now supports OpenSearch version 3.7
Jul 23
2026
Efficient log management with Amazon OpenSearch Service data streams

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.