Field Reference

Field Reference

This section documents the fields used by Makaira, including both customer-provided fields and internally generated fields.

Data Sources

Makaira can receive product data from multiple sources:

SourceDescription
Shop ConnectorsDirect integration with OXID, Shopware, Plentymarkets, Shopify
NDJSON ImportNewline-delimited JSON file imports
Persistence LayerOptional intermediate storage with boost calculations
API PushDirect data push via REST API

Field Categories

Customer-Provided Fields

These fields must be included in your import data:

FieldRequiredTypeDescription
idYesstringUnique document identifier
typeYesstringproduct, variant, category, or manufacturer
activeYesbooleanWhether the document is visible
onstockYesbooleanStock availability flag
shopYesstringShop identifier
titleYesstringDocument title
parentVariants onlystringParent product ID
urlRecommendedstringDocument URL

Makaira-Generated Fields

These fields are created automatically during import:

FieldDescription
es_idElasticsearch document ID ({id}_{datatype})
datatypeNormalized document type
join_fieldParent-child relationship structure
makairaImportImport timestamp (ISO 8601)
sequenceChange tracking number
suggestAutocomplete suggestions

Optional Processing (Persistence Layer)

When using the Persistence Layer, these additional fields are generated:

FieldDescription
mak_boost_norm_*Normalized boost scores (0-1)
isPseudoPseudo-variant marker
isVariantVariant type indicator
attributesAggregated attributes from variants

Document Type Mapping

Your typeInternal datatypeDescription
productmakaira-productgroupParent product (contains variants)
variantmakaira-productProduct variant (child of product)
categorycategoryCategory document
manufacturermanufacturerManufacturer/brand document

Note: The naming reflects Elasticsearch's parent-child structure where a "productgroup" contains multiple "products" (variants).

Field Suffixes

When filtering or sorting, use these suffixes:

SuffixPurposeExample
.unanalyzedExact matchingtitle.unanalyzed
.lowercaseCase-insensitive matchingmanufacturer_title.lowercase
.sortingAlphabetical sortingtitle.sorting

Related Documentation