
Handling WooCommerce Variations in Vespa
WooCommerce variable products require more than a simple product-level search document. A parent product such as a T-shirt may have dozens of variations, each with its own SKU, price, stock state, image, and attribute combination. For agencies building search with Vespa, the central design decision is whether to index the parent product, each variation, or both. Choose a variation indexing model For most WooCommerce catalogs, indexing one Vespa document per variation is the most reliable starting point. Each document represents a purchasable SKU and carries a reference to its parent product. Variation document: Stores the variation ID, parent product ID, SKU, price, stock state, attributes, and searchable text. Parent product: Stores the product title, description, categories, brand, and shared merchandising content. Relationship: The variation contains







