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.
| Role | Shown for | What it drives | Needs |
|---|---|---|---|
| Unique ID | Catalog, Docs, API only | The column that identifies a document. On Auto, the import picks one. A change applies at the next import. | A value in every row |
| Title | Catalog, Docs, API only | The first line of each result. The Title column is always searched. | Text |
| Image URL | Catalog, API only | The product card’s photo. With semantic search on, the photo that Similar compares. | A link, or several: the first one is shown |
| URL | Catalog, Docs, API only | Where a click on a result goes, and the link the AI assistant and AI agents cite. | A link |
| Content | Catalog, Docs, API only | The 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) | Catalog | The built-in category filter. In the filter, a path such as Furniture > Sofas shows as its last part. | Text, or a list |
| Price | Catalog | The card’s price, formatted by your currency setting. The built-in price slider and sorting by price. | A number |
| Sale price | Catalog | The sale price, with the price crossed out beside it. Shown only when it is above 0 and below Price. | A number |
| In stock | Catalog | An out-of-stock product gets a badge and no add-to-cart button. | True or false, or a number column |
| Rating | Catalog | The stars on the product card. | A number |
| Category (docs) | Docs | The header results are grouped under. | Text |
| Parent | Docs | What 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.
Value formats
Section titled “Value formats”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.
| Kind | For roles | Accepted | Rejected |
|---|---|---|---|
| number | Price, Sale price, Rating | A plain number with a dot as the decimal separator: 149, 19.99 | 15,90 €, call us |
| boolean | In stock | true/false, yes/no, on/off, 1/0, in any case. An empty cell is not an error. | in stock, available |
| link | URL, Image URL | https://…, //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 |
| list | Category (catalog) | A list of values, or a single value | — |
| text | Title, Content, Category (docs), Parent | Any 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.
Roles set for you
Section titled “Roles set for you”Sources whose format fixes the field names set the roles themselves. You can change them on Search → Setup, except on a crawled collection.
| Source | Roles it sets |
|---|---|
| Website crawl | Title, 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 address | Unique ID, Title, Content (the description), URL, Image URL, Price, Sale price, In stock |
| WordPress plugin, WooCommerce products | The store roles plus Category. The short description starts as a custom role named Summary. |
| WordPress plugin, posts and pages | Unique ID, Title, Content, URL, Image URL, Category |
| Google Shopping feed | Unique 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. |
Docs collections
Section titled “Docs collections”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.hierarchylvl2tohierarchylvl6: 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.
Roles over the API
Section titled “Roles over the API”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.
| Key | Role |
|---|---|
id | Unique ID |
title, url, image, content | Title, URL, Image URL, Content |
category | Category (catalog) |
price, salePrice, inStock, rating | Price, Sale price, In stock, Rating |
hierarchylvl0, hierarchylvl1 | Category (docs), Parent |
hierarchylvl2 to hierarchylvl6 | The docs path between the parent and the record |
| Rule | Behaviour |
|---|---|
PATCH | Merges into the current roles. An empty string clears one. |
| Column names | A 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 column | 400 naming roles. Before the first import, any name is accepted as the coming column. |
| Wrong kind | 400 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.