Skip to content

Roles

A role tells Typemo what a column is: the title, the price, the image. It points at the column and leaves its name alone. This page lists every role, what it drives and the values it needs. You set them on Map your fields.

Search → Setup shows the roles of the type picked under What you are building.

RoleShown forWhat it drivesNeeds
Unique IDCatalog, Docs, API onlyThe column that identifies a document. On Auto, the import picks one. A change applies at the next import.A value in every row
TitleCatalog, Docs, API onlyThe first line of each result. The Title column is always searched.Text
Image URLCatalog, API onlyThe product card’s photo. With semantic search on, the photo that Similar compares.A link, or several: the first one is shown
URLCatalog, Docs, API onlyWhere a click on a result goes, and the link the AI assistant and AI agents cite.A link
ContentCatalog, Docs, API onlyThe main text: search matches its words and the AI assistant answers from it. Docs results show it as the excerpt; product cards don’t show it.Text
Category (catalog)CatalogThe built-in category filter. In the filter, a path such as Furniture > Sofas shows as its last part.Text, or a list
PriceCatalogThe card’s price, formatted by your currency setting. The built-in price slider and sorting by price.A number
Sale priceCatalogThe sale price, with the price crossed out beside it. Shown only when it is above 0 and below Price.A number
In stockCatalogAn out-of-stock product gets a badge and no add-to-cart button.True or false, or a number column
RatingCatalogThe stars on the product card.A number
Category (docs)DocsThe header results are grouped under.Text
ParentDocsWhat a result belongs to, such as a section’s page or an article’s subcategory. It shows in the path under the result’s title.Text

The AI assistant reads the same roles: see What it reads. To tell AI what any other column means, give it a custom role.

  • One column per role. A column can hold several roles. Not mapped clears a role.
  • The kind must fit. Save refuses Price, Sale price or Rating on a column that isn’t a number. It refuses In stock on a column that is neither true/false nor a number. The role’s icon turns amber.
  • Title is required, with one exception. On API only, with semantic search on and Image URL mapped, Title can stay empty. Results then come with their id and image.
  • An unmapped role hides its part of the result. A catalog without a price, stock or rating shows cards without them, and is searched the same way.
  • Nothing is guessed from a column’s name. You set each role, or a source with a fixed format sets it: see Roles set for you.

A role sets the kind of its column at import: Price becomes a number, In stock true or false. Every value is checked then. A value that doesn’t fit rejects the import with a report naming the row, and search keeps the previous version: see How syncs work.

KindFor rolesAcceptedRejected
numberPrice, Sale price, RatingA plain number with a dot as the decimal separator: 149, 19.9915,90 €, call us
booleanIn stocktrue/false, yes/no, on/off, 1/0, in any case. An empty cell is not an error.in stock, available
linkURL, Image URLhttps://…, //host/…, or a path from your site root such as /products/tee. Image URL also takes a list, or links separated by commas.products/tee, a bare number
listCategory (catalog)A list of values, or a single value—
textTitle, Content, Category (docs), ParentAny text. HTML tags are kept and shown as typed; the import report warns about them.—

A Google Shopping feed is read in its own notation: prices like 15.00 USD and availability like in stock are understood as they are.

A column without a role gets its kind from its values. A column of numbers becomes a number you can filter by range. A column that mixes numbers and text becomes text. A code with a leading zero, such as 0012345, stays text with its zeros.

Sources whose format fixes the field names set the roles themselves. You can change them on Search → Setup, except on a crawled collection.

SourceRoles it sets
Website crawlTitle, Content and URL, locked as Set by the crawler. The crawler also fills the category and the path above each section. Custom roles and Searchable fields stay yours.
Shopify or WooCommerce store, by its addressUnique ID, Title, Content (the description), URL, Image URL, Price, Sale price, In stock
WordPress plugin, WooCommerce productsThe store roles plus Category. The short description starts as a custom role named Summary.
WordPress plugin, posts and pagesUnique ID, Title, Content, URL, Image URL, Category
Google Shopping feedUnique ID, Title, Content, URL, Image URL, Price, Sale price, In stock, Category, from Google’s own field names. A feed URL sets them on its first sync, when the collection has no roles yet; an uploaded feed file, in its preview.

The docs widget groups results by a section hierarchy, which it reads from fixed column names:

  • hierarchylvl0: the category, shown as the group header.
  • hierarchylvl1: the parent, such as the page a section belongs to.
  • hierarchylvl2 to hierarchylvl6: the headings between the parent and the result.

A website crawl and Index your build fill these columns for you. Mapping Category and Parent points the widget at columns of your own instead.

For developers. roles on POST /v1/collections and PATCH /v1/collections/{id} sets the roles, and GET /v1/collections/{id} returns them. The MCP create_collection tool takes the same roles. A walkthrough with an example is on Push over the API.

KeyRole
idUnique ID
title, url, image, contentTitle, URL, Image URL, Content
categoryCategory (catalog)
price, salePrice, inStock, ratingPrice, Sale price, In stock, Rating
hierarchylvl0, hierarchylvl1Category (docs), Parent
hierarchylvl2 to hierarchylvl6The docs path between the parent and the record
RuleBehaviour
PATCHMerges into the current roles. An empty string clears one.
Column namesA role names the column as fields[].name in GET /v1/collections/{id} lists it. That stored name can differ from your header: Product Name becomes product_name, in_stock becomes instock.
Unknown column400 naming roles. Before the first import, any name is accepted as the coming column.
Wrong kind400 naming roles: price, salePrice and rating need a number column; inStock a boolean or a number column.

Next: map your fields, or describe a column for AI.