Cognito Search
Go to App

Brands

Brands feed

A Brands feed describes your brand pages. Like the Categories feed, it has two roles: brand pages become searchable results, and the feed is the lookup table that turns a product's <brand> name into a link. Each product <brand> value is matched by name against this feed; on a match the brand's url is attached to the product. Without a Brands source, product brand names are still indexed but have no URL.

Register the feed as a source of type Brands.

Structure

  • Root element: <brands>
  • Item element: <brand> (zero or more)
<?xml version="1.0" encoding="UTF-8"?>
<brands>
<brand>
<name>Bayer</name>
<url>https://shop.example.com/brands/bayer</url>
</brand>
<brand>
<name>Eucerin</name>
<url>https://shop.example.com/brands/eucerin</url>
</brand>
</brands>

DTD

<!ELEMENT brands (brand*)>
<!ELEMENT brand (name, url)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT url (#PCDATA)>

Children must appear in the order shown above.

Elements

ElementRequiredTypeSearchedMeaning
nameyestextyesBrand name (e.g. "Bayer"). Full-text and prefix searchable. This is the value a product's <brand> is matched against. A brand with an empty name is skipped.
urlyestextnoLink to the brand page. Attached to products whose <brand> matches this entry's name. A brand with an empty URL is skipped.

Match products by exact brand name. A product's <brand> text must equal this name for the link to resolve.