Skip to main content
JSON indexing enables you to index structured JSON documents and query by nested field paths while leveraging vector similarity for text content.

Overview

Many documents contain structured data beyond simple text - product catalogs with specifications, user profiles with preferences, articles with nested metadata. JSON indexing lets you search both the semantic content and the structured fields.
JSON indexing combines the best of both worlds: vector search for semantic understanding plus structured queries for precise field matching.

How it works

  1. Document ingestion - Parse JSON documents and extract text content
  2. Vector embedding - Generate embeddings for searchable text fields
  3. Metadata storage - Store full JSON structure in document metadata
  4. Query execution - Search by vector similarity and filter by JSON paths

JSON path filtering

Use dot notation to filter by nested JSON fields:

Supported operators

JSON path filtering supports all standard metadata operators:

Document structure

Structure your JSON documents with searchable text and filterable metadata:

Configuration

Configure JSON indexing in your pipeline:

Usage example

Indexing JSON documents

Index JSON documents with automatic metadata extraction:

Query patterns

Multi-condition filters

Combine multiple JSON path filters:

Array field filtering

Filter documents by array membership:

Nested object queries

Access deeply nested fields:

Database support

JSON indexing is available for all vector databases:

Best practices

1

Design your schema

Separate searchable text fields from filterable metadata. Embed only the content that needs semantic search.
2

Index strategically

Most databases automatically index metadata fields. For large catalogs, verify field indexing for query performance.
3

Normalize data types

Use consistent types across documents (strings vs numbers, date formats) to avoid filter failures.
4

Limit nesting depth

While deeply nested paths work, flatter structures query faster and are easier to maintain.

Metadata filtering

Structured constraints on retrieval

Semantic search

Vector similarity search

Hybrid search

Combine dense and sparse retrieval

Multi-tenancy

Tenant-isolated indexing