Skip to main content
Setting metadata indexing requires the 2026-07 version of the API or later.
Pinecone indexes all metadata fields by default. However, large amounts of metadata can cause slower index building as well as slower query execution, particularly when data is not cached in a query executor’s memory and local SSD and must be fetched from object storage. To prevent performance issues due to excessive metadata, you can limit metadata indexing to the fields that you plan to use for query filtering.

Set metadata indexing

You can limit metadata indexing when you create an index with integrated embedding, or at namespace creation for any index:
  • Index-level metadata indexing rules apply to all namespaces that don’t have their own rules.
  • Namespace-level metadata indexing rules override index-level rules.
A document index doesn’t accept metadata fields in its schema at creation, so limit its metadata indexing at the namespace level. For example, if you store records that represent chunks of a document, each with many metadata fields, but you plan to filter on only a few, index just those fields. Set filterable to true for each field to index. To leave a field unindexed, omit it (filterable: false isn’t supported).
Metadata indexing cannot be changed after index or namespace creation.

Check metadata indexing

To check which metadata fields are indexed, you can describe the index or namespace:
The response includes the schema object with the names of the metadata fields explicitly indexed during index or namespace creation, alongside any search fields declared on the index.
The response does not include unindexed metadata fields or metadata fields indexed by default.