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

FieldTypeSearchableFacetableSortableNotes
idstring---Kelp document id
objectIdstring---Shopify numeric product id (GID suffix)
titlestringyes-yesProduct title
handlestringyes--Shopify URL handle
vendorstringyesyesyesProduct vendor / brand
productTypestringyesyesyesShopify product type
productCategorystringyesyesyesShopify standard product category
statusstring-yes-ACTIVE, DRAFT, or ARCHIVED
tagsstring[]yesyes-Shopify product tags
collectionsstring[]-yes-Handles of Shopify collections the product belongs to
descriptionstringyes--Product description (HTML stripped)
minPricenumber--yesLowest variant price
maxPricenumber--yesHighest variant price
variantsInStockPercentagenumber--yesFraction of variants with inventory > 0 (0.0 - 1.0)
featuredImagestring---Featured image URL
createdAtstring (ISO 8601)--yesProduct creation timestamp
updatedAtstring (ISO 8601)--yesLast update timestamp
publishedAtstring (ISO 8601)--yesPublication 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.

FieldTypeSortableRankableNotes
bestSellernumberyesyesAll-time units sold since tracking began
trendingnumberyesyesUnits 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:

ReferenceProjected values
keyedTagsFull array of all key:value tags
keyedTags.genderValues for the gender: key only
keyedTags.fitValues 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:

ReferenceProjected values
metafieldsAll synced metafields
metafields.materialValues 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:

NotationFieldResult
options.ColorProjected option values["Red", "Blue"]
keyedTags.genderProjected tag values for key["mens", "unisex"]
metafields.materialProjected 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.

On this page