Catalog fields reference
All Shopify product fields available in a Kelp products collection - searchable, filterable, sortable, and rankable.
Every document in a Kelp products collection is built from your Shopify product data. This page lists the canonical fields available for search, filtering (faceting), sorting, and ranking.
Core product fields
| Field | Type | Searchable | Facetable | Sortable | Notes |
|---|---|---|---|---|---|
id | string | - | - | - | Kelp document id |
objectId | string | - | - | - | Shopify numeric product id (GID suffix) |
title | string | yes | - | yes | Product title |
handle | string | yes | - | - | Shopify URL handle |
vendor | string | yes | yes | yes | Product vendor / brand |
productType | string | yes | yes | yes | Shopify product type |
productCategory | string | yes | yes | yes | Shopify standard product category |
status | string | - | yes | - | ACTIVE, DRAFT, or ARCHIVED |
tags | string[] | yes | yes | - | Shopify product tags |
collections | string[] | - | yes | - | Handles of Shopify collections the product belongs to |
description | string | yes | - | - | Product description (HTML stripped) |
minPrice | number | - | - | yes | Lowest variant price |
maxPrice | number | - | - | yes | Highest variant price |
variantsInStockPercentage | number | - | - | yes | Fraction of variants with inventory > 0 (0.0 - 1.0) |
featuredImage | string | - | - | - | Featured image URL |
createdAt | string (ISO 8601) | - | - | yes | Product creation timestamp |
updatedAt | string (ISO 8601) | - | - | yes | Last update timestamp |
publishedAt | string (ISO 8601) | - | - | yes | Publication timestamp |
Popularity fields
Popularity fields are computed from your Shopify order history via order sync. They update daily and can also be refreshed on demand.
| Field | Type | Sortable | Rankable | Notes |
|---|---|---|---|---|
bestSeller | number | yes | yes | All-time units sold since tracking began |
trending | number | yes | yes | Units sold in the trailing 60 days |
Products with no order history default to 0 for both fields.
These fields can be used as ranking signals in a collection's ranking config or sorted directly:
// Sort by trending popularity
await kelp.browse('products', {
sort: [{ field: 'trending', direction: 'desc' }],
});
// Tie-break: trending first, then title
await kelp.browse('products', {
sort: [
{ field: 'trending', direction: 'desc' },
{ field: 'title', direction: 'asc' },
],
});Options fields
Shopify product options (Color, Size, Material, etc.) are available as structured fields.
The options array
The root options field is a flat array of all option values across all variants, prefixed with the option name:
options: ["Color:Red", "Color:Blue", "Color:Navy", "Size:S", "Size:M", "Size:L"]This field is facetable for generic option filtering:
await kelp.search('products', {
facets: ['options'],
filters: [{ field: 'options', op: '=', values: ['Color:Red'] }],
q: 'shirt',
});Keyed option fields via dot notation
For per-option faceting and filtering, reference an option by name using dot notation: options.Color, options.Size, options.Material.
Kelp projects a dedicated field for each option name containing only its values (not the prefixed form):
options.Color: ["Red", "Blue", "Navy"]
options.Size: ["S", "M", "L"]This is equivalent to how keyedTags and metafields work - dot notation projects a typed sub-field from the parent.
// Filter on a specific option
await kelp.search('products', {
filters: [{ field: 'options.Color', op: '=', values: ['Red', 'Blue'] }],
facets: ['options.Color', 'options.Size'],
q: 'shirt',
});Only values that appear on real variants are indexed. If a product has a "Size" option with values S/M/L defined, but no variant with size XL exists, options.Size will not include "XL".
Always use dot notation (options.Color) in your collection config and query params. Do not use underscore form (options_Color).
Configuring options fields
To make an option field filterable or facetable, reference it in your collection config using the same dot notation:
{
"facetAttributes": ["options.Color", "options.Size", "options.Material"]
}Once configured, the field is available for filtering, facet counts, and ranking.
Keyed tag fields
keyedTags contains Shopify tags that follow the key:value convention. Reference a specific key using dot notation:
| Reference | Projected values |
|---|---|
keyedTags | Full array of all key:value tags |
keyedTags.gender | Values for the gender: key only |
keyedTags.fit | Values for the fit: key only |
await kelp.search('products', {
filters: [{ field: 'keyedTags.gender', op: '=', values: ['mens'] }],
facets: ['keyedTags.gender', 'keyedTags.fit'],
q: 'jeans',
});Metafield fields
Shopify metafields synced to the catalog are available via dot notation on the metafields field:
| Reference | Projected values |
|---|---|
metafields | All synced metafields |
metafields.material | Values for the material metafield key |
await kelp.search('products', {
filters: [{ field: 'metafields.material', op: '=', values: ['cotton'] }],
facets: ['metafields.material'],
q: 'shirt',
});Metafields must be configured for sync in your Kelp tenant settings before they appear in the index.
Dot notation summary
All three keyed field types follow the same pattern:
| Notation | Field | Result |
|---|---|---|
options.Color | Projected option values | ["Red", "Blue"] |
keyedTags.gender | Projected tag values for key | ["mens", "unisex"] |
metafields.material | Projected metafield values | ["cotton", "linen"] |
All projected fields are filterable, facetable, and rankable once referenced in your collection configuration.
Field configuration
A field must appear in your collection's configuration before it can be used for filtering, faceting, or sorting. Referencing a field not in the config returns a 400.
See Filtering & facets for the facet config reference, Ranking for ranking config, and Pagination and sorting for sortable field rules.