TengenceTengence
Product docs

General Index Schema Reference

Any industry runs into the same set of fields: identifier, title, summary, URL, category, status and time. Make that group the minimum set and onboarding works…

Any industry runs into the same set of fields: identifier, title, summary, URL, category, status and time. Make that group the minimum set and onboarding works; what follows is that minimum set for any industry, plus recommended and optional tiers.

Fill the 8 required fields and the index can go live; when the business needs more, add fields from your vertical table. One semantic type code can serve several industries, so there is no need to rebuild it.

Each field name cell lists several variants separated by slashes, with our preferred name first. Your tables do not need to match our names; map the field to the right semantic type in the console and you are done.

How to use these fields

  1. Prepare data against the 8 required fields below; use your own column names, picking the closest variant from each slash list.
  2. Create a dataset in the console and map those 8 fields to the semantic types in the right-hand column. Once mapped you can build the index and run a first query.
  3. Add the recommended and optional tiers next — recall quality and result-card experience depend on them.
  4. When your business needs more, read the additions in your vertical article, such as the E-commerce Index Schema Reference or the Content Index Schema Reference.

Why these 8 required fields

These 8 fields cover four things a search system cannot avoid: locating the record (identifier), knowing what it is (title, description), knowing where the user lands (URL), and knowing what it belongs to and whether it is live (category and status). Drop any of them and onboarding stalls — without an identifier you cannot write back overrides, without status you cannot keep stale data out of the index.

Only PUBLISH_TIME is required among the time fields. CREATE_TIME and UPDATE_TIME sit in the recommended tier because many businesses fold ingest time into publish time, and making both mandatory would block teams whose semantics simply differ.

Minimum viable field set (required)

Common field names Semantic type Priority Processing type Description Search use
item_id / id / content_id / doc_id / product_id PRIMARY_KEY Required Keyword Unique permanent identifier used for locating, dedupe and write-back Locate records, dedupe, incremental sync, targeted overrides
title / name / subject TITLE Required Tokenized Text Primary title, up to 200 characters, no site name or marketing tail Primary recall, title match, highlighting, query mining
description / summary / abstract / intro / brief DESCRIPTION Required Tokenized Text Summary, 60–160 characters, standalone enough to describe the record Summary recall, result card display, quality scoring
item_url / url / link / canonical_url / page_url ITEM_URL Required Normal Text Landing page URL, absolute preferred, may carry tracking parameters Click-through, indexing, dedupe of mirrored pages
category_id / cat_id / class_id / channel_id CATEGORY_ID Required Normal Text Top-level category identifier, consistent within one dataset Category filtering and aggregation
category_name / cat_name / class_name / channel_name CATEGORY_NAME Required Tokenized Text Top-level category name shown in facets and cards Facet labels, result tags, breadcrumbs
publish_time / pub_time / online_time / created_at PUBLISH_TIME Required Date/Time Publish or go-live time, ISO 8601 or epoch milliseconds Recency ranking, “latest” filters, time-range filtering
status / state / is_online / is_active STATUS Required Keyword Online state; only valid records should reach the index Filter before indexing, delete on takedown

These 10 fields decide recall quality and card experience: without body there is no full-text recall, without cover there is no card, without update time there is no incremental sync.

Common field names Semantic type Priority Processing type Description Search use
subtitle / sub_title / secondary_title SUBTITLE Recommended Tokenized Text Subtitle or lead line that complements the title Secondary recall, second line in lists
detail / content / body / text / article_body DETAIL Recommended Tokenized Text Body or detail; long text may be truncated to the main section Full-text recall, paragraph highlighting, summary generation
main_image_url / cover_url / image / thumbnail MAIN_IMAGE_URL Recommended Normal Text Main image or cover URL, 1:1 or 4:3 preferred Card cover, image-search entry, visual quality checks
image_list / images / pics / gallery IMAGE_LIST Recommended Array Multiple images, JSON array or pipe-separated Gallery preview, image recall, image-text consistency
category_path / cat_path / breadcrumb CATEGORY_PATH Recommended Normal Text Full category path, e.g. “Home Appliances/Kitchen/Coffee Makers” Multi-level filtering, path aggregation, navigation
create_time / gmt_create / record_time CREATE_TIME Recommended Date/Time Ingest time, kept separate from publish time Incremental sync watermark, freshness debugging
update_time / gmt_modified / modified_at UPDATE_TIME Recommended Date/Time Last modified time used to detect changes Incremental sync, change merging, cache invalidation
language / lang / locale LANGUAGE Recommended Keyword Content language code such as zh-Hans, en, zh-Hant Multilingual search, language filtering, analyzer choice
tags / tag / labels / label_list TAGS Recommended Array Tag set, business-defined, 15 or fewer recommended Tag filtering, related items, interest recall
keywords / kw / keyword_list / search_words KEYWORDS Recommended Tokenized Text Keywords and synonyms for recall expansion and boosting Recall boosting, synonym expansion, search suggestions

Optional fields (8)

Include them when you have them; their absence does not block launch. Keep count definitions consistent, or ranking results will contradict each other.

Common field names Semantic type Priority Processing type Description Search use
video_url / play_url / video_src VIDEO_URL Optional Normal Text Video URL, only when the record has one Video playback, video recall
region / area / country / geo / city REGION Optional Keyword Geographic scope: country, province, city or service area Localized search, region filtering, city ranking
expire_time / offline_time / end_time EXPIRE_TIME Optional Date/Time Expiry or takedown time for automatic cleanup Stale data cleanup, campaign validity
view_count / pv / views / page_views VIEW_COUNT Optional Numeric View count with a consistent definition (UV or PV) Popularity ranking, leaderboards, cold-start boost
share_count / shares / forward_count SHARE_COUNT Optional Numeric Share or forward count Spread ranking, quality detection
favorite_count / collect_count / fav_count FAVORITE_COUNT Optional Numeric Favorite or follow count Preference recall, user interest profiles
author / writer / creator / author_name AUTHOR Optional Keyword Author or creator display name Author filtering, author aggregation, byline display
publisher / site_name / source_name PUBLISHER Optional Keyword Publisher, site or source name Source filtering, authority boosting, source aggregation

Plain fields (8, no semantic type)

The fields below serve a single form or are rarely reused. Keep them as plain index fields instead of spending a semantic type on them.

Semantic type Common field names Processing type Description Search use
image_count / img_count / pic_num Numeric 图片数量,整数 Number of images
audio_url / audio_src / voice_url Normal Text 音频地址,有音频才填 Audio URL
content_length / char_count / text_len Numeric 正文长度(字符数),用于长度过滤与打分 Body length in characters
hot_rank / hot_score / rank Numeric 人工或算法热度排名,整数 Hotness rank
aigc_flag / is_aigc / ai_generated Numeric 是否 AI 生成内容,0/1 AI-generated flag, 0/1
file_type / ext / mime_type Keyword 文件类型或扩展名,如 pdf、docx、mp4 File type or extension
attachment_url / file_url / doc_url Normal Text 附件地址,文档类常用 Attachment URL
page_no / page_num / page_index Numeric 页码或原文档页码,扫描件与 PDF 常用 Page number in the source document

Semantic types and industry groups

All 26 tagged fields reuse existing semantic types. New codes added: 0.

All 26 tagged fields map to semantic types that already exist; this article adds no new code. The groups in the console are not databases but drawers for picking: GENERAL, E_COMMERCE, and CONTENT_COMMUNITY. One code can appear in several drawers while remaining a single code underneath.

So sharing TITLE between the general and commerce groups is not duplication. Groups only make picking easier in the console; a dataset references the code itself. The more codes industries share, the more consistent cross-industry retrieval becomes.

Group code Display name Types What it holds
GENERAL General industry 28 Fields any industry can use; the foundation of every vertical
E_COMMERCE E-commerce 70 Product, SKU, taxonomy, price and transaction fields
CONTENT_COMMUNITY Content community 49 Content form, body and transcript, creator, engagement and chunks

Counts reflect the console; a code that belongs to several groups is counted in each.

How verticals extend the general set

Map the 26 general fields first, then read the additions in your vertical table. Additions only hold for that industry; do not push them back into the general set, or the general set slowly turns into commerce and fits nobody.

For a new vertical — retail, recruiting, real estate, local life, enterprise documents — reuse the general set as-is and add only genuinely unique fields (floor area, salary range, store hours). Create a new tag only when nothing existing fits.

Vertical Additions Examples
Commerce +29 PRICE, ORIGINAL_PRICE, DISCOUNT, STOCK, SKU_ID, SPU_ID, BRAND_ID, BRAND_NAME, COLOR, SIZE, MATERIAL, SALES_COUNT, RATING, CART_COUNT, SHOP_ID, SHOP_NAME, SELLER_NAME …
Content +23 CONTENT_TYPE, SOURCE_TYPE, ORIGINAL_FLAG, DURATION, TRANSCRIPT, ENTITIES, QUALITY_SCORE, HOT_SCORE, LIKE_COUNT, COMMENT_COUNT, VISIBILITY, SECTION_PATH, CHUNK_ID …
Other verticals — Add only genuinely unique fields; reuse every general code you can

Sample records

All three start from the general fields; the last few keys in each are vertical additions. That is what a shared foundation looks like.

Commerce item (general fields + commerce extras)

{
  "item_id": "SKU-8842-01",
  "title": "Stainless Steel Pour-Over Kettle 600ml",
  "description": "Precise spout control, 304 stainless steel, serves 1-2 cups, 20 filters included.",
  "item_url": "https://shop.example.com/p/8842",
  "category_id": "C3102",
  "category_name": "Coffee Gear",
  "category_path": "Home Appliances/Kitchen/Coffee Gear",
  "publish_time": "2026-11-18T09:30:00+08:00",
  "update_time": "2026-11-25T11:02:00+08:00",
  "status": "online",
  "language": "zh-Hans",
  "main_image_url": "https://cdn.example.com/8842-main.jpg",
  "image_list": ["https://cdn.example.com/8842-1.jpg", "https://cdn.example.com/8842-2.jpg"],
  "tags": ["pour-over", "outdoor", "gift"],
  "keywords": ["coffee kettle", "pour over", "gooseneck"],
  "view_count": 18234,
  "favorite_count": 640,
  "price": 268.00,
  "stock": 120,
  "sales_count": 3120
}

Blog post (general fields + content extras)

{
  "item_id": "post-20261120-0071",
  "title": "Designing an index schema: from fields to recall",
  "description": "How product and content data differ, and a reusable way to layer fields.",
  "item_url": "https://blog.example.com/p/index-schema-design",
  "category_id": "tech",
  "category_name": "Technology",
  "category_path": "Blog/Technology/Search",
  "publish_time": "2026-11-20T08:00:00+08:00",
  "update_time": "2026-11-22T19:15:00+08:00",
  "status": "published",
  "language": "en",
  "detail": "Most teams start by listing fields when they wire up search...",
  "main_image_url": "https://blog.example.com/cover/0071.jpg",
  "tags": ["search engine", "index design"],
  "keywords": ["field design", "semantic type", "recall"],
  "author": "Tim",
  "publisher": "Tengence Blog",
  "view_count": 4210,
  "share_count": 88,
  "content_type": "article",
  "read_time": 9,
  "original_flag": 1
}

Knowledge base chunk (general fields + chunk extras)

{
  "item_id": "kb-77-doc-12-chunk-3",
  "title": "Refund flow > Partial refund",
  "description": "Eligibility, approval chain and settlement timing for partial refunds.",
  "item_url": "https://kb.example.com/doc/12#chunk-3",
  "category_id": "cs",
  "category_name": "Support Handbook",
  "category_path": "Knowledge Base/Support/After-sales",
  "publish_time": "2026-09-02T10:00:00+08:00",
  "update_time": "2026-11-10T09:20:00+08:00",
  "status": "published",
  "language": "zh-Hans",
  "detail": "A partial refund means only some items in an order are refunded...",
  "tags": ["after-sales", "refund"],
  "keywords": ["partial refund", "approval", "settlement"],
  "author": "Support Ops",
  "view_count": 1560,
  "kb_id": "kb-77",
  "kb_name": "Support Knowledge Base",
  "section_path": "Refund flow/Partial refund",
  "chunk_id": "kb-77-doc-12-chunk-3",
  "chunk_index": 3,
  "parent_id": "kb-77-doc-12"
}

Pre-launch checklist

  1. Identifier is unique across the dataset, with no nulls and no reused historical IDs.
  2. Titles and descriptions carry no site name, keyword stuffing, or marketing tail.
  3. Links resolve directly to the detail page, not to a listing page or a 404.
  4. Category IDs map one-to-one to names; no ID has several spellings.
  5. Times share one timezone and format; seconds and milliseconds are not mixed.
  6. Status values are enumerable, and takedown records are deleted during sync.
  7. Semantic type mapping is complete; no required field is left unmapped in the console.
  8. Image, video and attachment URLs are public absolute URLs, never intranet addresses.
  9. Count fields share one definition, and missing values are 0 rather than empty strings.
  10. Push 1,000 records first, confirm recall and ranking, then push the full dataset.

FAQ

Yes. Eight required fields cover the shortest path: search by title, filter by category, sort by time, open the detail page. Poor recall usually means missing body or keywords, not too few fields.

My column names do not match the article at all.

You do not have to rename anything. The names in the article are candidates; map goods_name to the TITLE semantic type in the console and leave the column as it is.

Does the same semantic type in two groups mean two records?

No. One code exists once; groups are just picking drawers. A dataset references the code, so appearing in two groups never duplicates data.

Why recommend PRIMARY_KEY rather than ID for the key?

Use PRIMARY_KEY for the key role so there is one convention. ID and PRODUCT_CODE exist in the system, but they are not recommended as the primary key here, to prevent split definitions.

Will a new vertical require changes to these general fields?

No. The general set only takes backward-compatible additions; a new vertical adds its own fields on top of it.

Next step

Prepare a CSV from those 8 required fields or connect your database directly, create a dataset in the console, finish the field mapping, then build the index and run a first query. Getting it live first and completing fields later saves the most rework.

On this page