What is a typed attribute?
A typed attribute stores a value in a defined type, such as a number with a unit, a yes/no value or a choice from an allowed list.
In plain words: A typed attribute keeps a product fact as a number, a unit, a yes/no value or a choice from a fixed list, instead of as loose text. Three 8-litre boxes become the number 8, the unit litre and a count of 3, so a filter or a comparison can use them.
Published by Youzu · Editorial policy
- Published
Why it matters
Unstructured text cannot be filtered, sorted or compared. Typed values let a store filter by capacity, check that a required field is a number and spot a wrong unit.
How it works
Define the type
For each attribute, decide whether it is text, a number with a unit, a yes/no value or a list of allowed values.
Store the value
Keep the value and its unit in separate fields, and keep zero and false as real values.
Validate
Reject values of the wrong type and leave unsupported values empty.
| Type | Example | What it allows |
|---|---|---|
| Text | Field jacket | Search and display |
| Number with unit | 8 litre | Range filters and comparison |
| Yes/no | Waterproof: no | A filter that includes false |
| Allowed values | Size: S, M, L | Consistent facets |
Examples
Size as a choice
The jacket's size is one of S, M or L from an allowed list. 'Medium' and 'M' collapse into one value.
Width as a number
A sofa's width is stored as 180 with the unit centimetre.
Pack count apart from volume
Three 8-litre boxes are a count of 3 and a volume of 8 litres.
Common mistakes
Units inside the text. A width stored as '180 cm' text cannot be range-filtered, and '1.8 m' will not match it.
False treated as empty. A yes/no value of 'no' is dropped as missing, so a filter for non-waterproof jackets finds nothing.
Related terms
- Attribute extraction
- Pulling structured values such as color, material or size out of text or images and storing them as fields on a product record.
- Product taxonomy
- The hierarchy of categories, and the attributes attached to each, that organizes a catalog for browsing, filtering and reporting.
- Advisory suggestion
- An advisory suggestion is a proposed value that the receiving application may apply, edit or ignore; it changes nothing by itself.
In Youzu
Youzu helps marketplaces, classifieds and retailers turn raw seller and supplier product data into structured, reviewable catalog records.
Sources
PropertyValue, Schema.org. schema.org/PropertyValue. Accessed .
Product data specification, Google Merchant Center Help. support.google.com/merchants/answer/7052112. Accessed .
FAQ
Questions buyers ask
Youzu maps products to your category tree and extracts the attributes your category defines; numbers and yes/no values stay typed, and values the evidence does not support are left empty. A width of 180 centimetres stays a number with a unit, so it can be filtered and compared.
The field stays empty. Youzu maps products to your category tree and extracts the attributes your category defines; numbers and yes/no values stay typed, and values the evidence does not support are left empty. An empty field shows as a gap that a person or the seller can fill, not a guess.
No. They share a total volume but are different products with different counts, and a shopper compares them differently. Keep the pack count and the volume as separate typed fields so a filter by volume does not mix the 2.
Last reviewed
Related
Keep reading
Product
Extract product attributes from images
Read color, material and style from product photos into typed attributes for filters and search; empty when the image does not support it.
Glossary
What is attribute extraction?
Attribute extraction defined in plain words, with a worked example, common mistakes and links to the guides and Youzu products that apply it.
Guide
Product taxonomy mapping: how to do it and how to measure it
How to map seller and supplier categories to your own taxonomy: standards, rule-based and AI methods, edge cases and how to measure accuracy.