Product docs
- Getting started
- Platform and account
- Products
- Product Overview
- Tengence Search
- Product Overview
- Use cases: which businesses Tengence Search fits
- Getting started
- Search Setup: App, Dataset, Index, First Query
- OpenSearch Spring Boot Starter Integration
- Elasticsearch Spring Boot Starter Integration
- Guides
- Index Concepts and Configuration Guide
- Index Schema Reference
- Search Ranking and Weighting Configuration
- Ranking Factors and Functions Reference
- Search Suggestions and Intervention Rules
- Developer reference
- Search API Reference
- Search API Integration and Examples
- Search Widget Integration
- Operations and support
- Search Operations and Monitoring
- Search Troubleshooting
- Query Rules and Query Intervention
- Search Log Collection Policy
- Query Understanding Configuration
- Tengence GEO
- Tengence Recommendation
- Tengence Insight
- Data Integration
- Integration and API
- Solutions
- Concepts and metrics
Content Index Schema Reference
How should content-centric businesses — blogs, forums, image-and-text communities, short video, news feeds and enterprise knowledge bases — prepare their field…
How should content-centric businesses — blogs, forums, image-and-text communities, short video, news feeds and enterprise knowledge bases — prepare their fields so that search is accurate, recommendations work, and access control still holds?
The six forms differ a lot, yet what retrieval needs overlaps heavily. For an item to be findable it needs at minimum a unique identifier, a title, some body text or transcript, a publish time, a language, and a status. So no six field tables: one shared main table plus a form-difference table. Pick your form and check which extra columns to fill.
Fields come in three tiers: the 14 required ones are the minimum for a working search; recommended fields set the ceiling on quality; optional fields are filled as the business needs. Field names are given as several common variants separated by slashes — the leftmost is the most recommended, and your own naming scheme works fine as long as it maps to the semantic type.
How to use these fields
- Decide your content form — blog, forum, image-and-text community, short video, news feed, knowledge base — then use the form table to see which extra columns you need.
- Prepare data for the 14 required fields in the main table. Everything else can stay empty and you still get a working index and a first successful search.
- Shape your data as JSON Lines, one item per line. Use the field names in the table or your own, but make sure the semantic type mapping is right.
- In the console, create a dataset (industry type: content community), push the data source, map fields, and build the index. For knowledge bases that need chunking, also fill the knowledge-base group under extended fields.
Content forms and what they need
| Form | Typical systems | Characteristics | What to solve |
|---|---|---|---|
| Blog / CMS | WordPress, Ghost, self-hosted blogs | Long-form writing, often multi-site and multi-author | Multi-site isolation, draft exclusion, body truncation |
| Forums | Discuz, Flarum, phpBB | Threads plus floors, replies far outnumber posts | Thread-reply relation, pinning, featured posts |
| Image-and-text community | Xiaohongshu-style note apps | Short titles, many images, heavy tag use | Image list and cover, tag filtering |
| Short video | Douyin-style apps, video channels | Almost no body text; the media is the content | Transcript recall, duration filtering |
| Feed and news | Toutiao-style feeds, news apps | Time-sensitive, interest-driven, many sources | Recency decay, hotness score, source typing |
| Knowledge base | Confluence, Lark Docs, Notion, Yuque | Documents retrieved as chunks with strict permissions | Chunks, section paths, clearance and tenant isolation |
Main field reference
The tables below group the main content fields by business area. The first column lists common name variants separated by slashes; the leftmost is the most recommended. Under “Priority”, required means the index will not work without it, recommended affects search quality, and optional is filled as needed. “Processing” shows how the platform parses the field; an empty “Semantic type” cell means no semantic type tag is created and the field is indexed directly with the processing type shown.
Identity and basics
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
item_id / content_id / article_id / doc_id / post_id |
PRIMARY_KEY |
Required | Keyword | Unique permanent identifier of the item | Locate records, dedupe, incremental updates |
doc_type / content_type / media_type |
CONTENT_TYPE |
Required | Keyword | Content form: article, video, note, gallery, qa, kb_doc, live | Route retrieval strategy and result layout by form |
title / headline / subject |
TITLE |
Required | Tokenized Text | Title, up to 200 characters, no site name | Primary recall, title match, highlighting, query mining |
subtitle / short_title / sub_headline |
SUBTITLE |
Recommended | Tokenized Text | Subtitle or lead sentence | Secondary recall, list subtitle |
url / link / detail_url / permalink |
ITEM_URL |
Required | Normal Text | Detail page URL, absolute or relative | Result navigation, URL dedupe |
lang / language / locale |
LANGUAGE |
Required | Keyword | Content language, e.g. zh-Hans, zh-Hant, en | Language routing, same-language priority, cross-lingual grouping |
site_id / site / site_code |
SITE_ID |
Recommended | Keyword | Site identifier, required for multi-site deployments | Multi-site isolation, channel filtering |
status / state / publish_status |
STATUS |
Required | Keyword | published, draft, private, deleted, pending | Index published only; deletions as soft delete |
Content body
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
summary / description / abstract / digest |
DESCRIPTION |
Required | Tokenized Text | Summary, up to 200 characters, for lists and summary recall | List summary, summary recall, vector input |
body / content / text / article_body / full_text |
DETAIL |
Required | Tokenized Text | Full body text; truncate beyond 20k characters into chunks | Full-text recall, main vector source, snippet highlight |
keywords / key_words / search_words |
KEYWORDS |
Required | Tokenized Text | Keyword list, up to 10 items | Recall boost, search suggestions, synonym expansion |
tags / tag_list / topic_tags |
TAGS |
Required | Array | Tag list, up to 20; put topic words here too | Tag filtering, interest recommendation, topic aggregation |
entities / named_entities / ner_tags |
ENTITIES |
Recommended | Tokenized Text | Named entities: people, places, organizations, products | Entity recall, knowledge linking, entity cards |
transcript / asr_text / subtitle_text / video_text |
TRANSCRIPT |
Recommended | Tokenized Text | Subtitle or spoken transcript; required for video and audio | The only text source for audio and video recall |
Category and source
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
category_id / channel_id / column_id |
CATEGORY_ID |
Required | Keyword | Channel or column identifier, leaf level | Channel filtering, per-column retrieval |
category_name / channel_name / column_name |
CATEGORY_NAME |
Required | Tokenized Text | Channel or column display name | Display, breadcrumbs, filter labels |
category_path / channel_path / breadcrumb |
CATEGORY_PATH |
Recommended | Normal Text | Full hierarchy path separated by slashes | Include-child filtering, hierarchy aggregation |
author_name / author / creator_name / byline |
AUTHOR |
Required | Tokenized Text | Author or creator display name | Author recall, following feeds, author aggregation |
author_id / creator_id / uid |
AUTHOR_ID |
Recommended | Keyword | Unique author identifier for disambiguation | Exact filtering, follow relations, author pages |
publisher / source_name / media_name / site_name |
PUBLISHER |
Recommended | Tokenized Text | Publishing platform or media name | Source display, media filtering, repost detection |
source_type / content_source / origin_type |
SOURCE_TYPE |
Recommended | Keyword | UGC, PGC, OGC, AIGC | Quality tiers, content governance, ranking weights |
original_flag / is_original / copyright_flag |
ORIGINAL_FLAG |
Optional | Keyword | Whether the item is original, boolean | Originality boost, repost labeling |
Media
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
main_image / cover_url / thumbnail_url / image |
MAIN_IMAGE_URL |
Recommended | Normal Text | Cover or lead image URL | Card display, image search entry, image dedupe |
image_list / images / gallery |
IMAGE_LIST |
Optional | Array | List of image URLs | Image carousel on detail page |
image_count / pic_num |
Optional | Numeric | Number of images, integer | Gallery detection, form filtering | |
video_url / media_url / play_url |
VIDEO_URL |
Optional | Normal Text | Video playback URL | Playback and video result rendering |
duration / video_duration / length_second |
DURATION |
Recommended | Numeric | Duration in seconds | Duration filtering, short vs long video |
audio_url / audio_src / podcast_url |
Optional | Normal Text | Audio or podcast URL | Podcast playback |
Time, access and lifecycle
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
publish_time / pub_time / published_at / release_time |
PUBLISH_TIME |
Required | Date/Time | Publish time, ISO 8601 or epoch milliseconds | Recency ranking and freshness decay |
expire_time / offline_time / valid_until |
EXPIRE_TIME |
Optional | Date/Time | Expiry time; excluded from recall afterwards | Timely content takedown, expiry filtering |
visibility / visible_scope / permission |
VISIBILITY |
Recommended | Keyword | public, followers, member, private | Visibility filtering: followers-only, members-only |
security_level / secret_level / classification |
SECURITY_LEVEL |
Recommended | Keyword | Classification level 0-5, higher is more sensitive | Clearance filtering for knowledge bases |
tenant_id / workspace_id / org_id / space_id |
TENANT_ID |
Recommended | Keyword | Tenant, workspace or organization identifier | Multi-tenant isolation; required for knowledge bases |
create_time / created_at / ctime |
CREATE_TIME |
Optional | Date/Time | Ingestion or creation time | Ingestion ordering, audit |
update_time / updated_at / mtime / last_modified |
UPDATE_TIME |
Optional | Date/Time | Last update time | Incremental sync watermark, update freshness |
Engagement and quality
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
view_count / pv / read_count / views |
VIEW_COUNT |
Recommended | Numeric | View count, unique or raw as preferred | Primary hotness signal, trending lists |
like_count / likes / praise_count |
LIKE_COUNT |
Optional | Numeric | Like count | Engagement quality, content boost |
comment_count / comments / reply_count |
COMMENT_COUNT |
Optional | Numeric | Comment count; forum replies also go here | Discussion volume, ranking boost |
share_count / shares / forward_count |
SHARE_COUNT |
Optional | Numeric | Share or forward count | Virality, off-site popularity |
favorite_count / collect_count / favorites |
FAVORITE_COUNT |
Optional | Numeric | Favorite count | Save-rate signal |
read_time / reading_time / cost_minutes |
READ_TIME |
Recommended | Numeric | Estimated reading time in minutes | Reading-cost filtering, long vs short content |
quality_score / content_score / rank_score |
QUALITY_SCORE |
Recommended | Numeric | Quality score 0-100 from a model or editorial review | Quality weighting, low-quality demotion |
hot_score / heat_score / popularity |
HOT_SCORE |
Recommended | Numeric | Editorial hotness score 0-100 | Hotness ranking, editorial intervention |
Geo and editorial
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
region / area / market |
REGION |
Optional | Keyword | Region or market identifier such as city code | Regional filtering, local channels |
location / geo / lat_lng |
Optional | Numeric | Latitude and longitude as lat,lng | Nearby recall, distance ranking | |
is_top / top / sticky |
IS_TOP |
Optional | Keyword | Whether the item is pinned, boolean | Pinned exposure, feature header |
is_breaking / breaking / urgent |
Optional | Numeric | Whether it is breaking news, boolean | Breaking flag, realtime feed ranking |
Extended fields
Extended fields apply only to the matching form: the first group for knowledge bases that retrieve chunks, the audio/video group for transcripts and on-screen text, and the forum group for floors and featured flags. Most of these carry no semantic type tag and are indexed directly with the type shown.
Knowledge base and chunks
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
kb_id / knowledge_base_id / space_id |
KB_ID |
Required | Keyword | Knowledge base identifier | KB-scoped filtering, cross-KB toggle |
kb_name / knowledge_base_name |
KB_NAME |
Recommended | Tokenized Text | Knowledge base display name | Source display, filter by KB |
section_path / heading_path / chapter |
SECTION_PATH |
Recommended | Tokenized Text | Section path such as “Chapter 3/3.2 Access model” | Hit location, context recall, TOC navigation |
chunk_id / passage_id / segment_id |
CHUNK_ID |
Required | Keyword | Unique chunk identifier | Chunk dedupe, answer citation, incremental update |
chunk_index / chunk_no / segment_no |
CHUNK_INDEX |
Recommended | Numeric | Chunk ordinal within the document | Context restore, adjacent chunk recall |
parent_id / parent_doc_id / thread_id |
PARENT_ID |
Required | Keyword | Parent document ID; thread ID on forums | Chunk grouping, thread-reply linking |
Document attachments
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
file_type / ext / suffix |
Optional | Keyword | Attachment type: docx, pdf, md, html | Filter by format, parser routing | |
attachment_url / file_url / download_url |
Optional | Normal Text | Original file download URL | Download and result navigation | |
page_no / page_number / pageno |
Optional | Numeric | Page number of the hit in PDF | Jump to page, citation pinpoint |
Audio and video extras
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
ocr_text / screen_text |
Optional | Tokenized Text | Text recognized from frames or covers | Recall over on-image text | |
caption_url / vtt_url / srt_url |
Optional | Normal Text | Subtitle file URL, vtt or srt | Subtitle loading, accessible playback |
Forums and communities
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
floor_no / floor / post_no |
Optional | Numeric | Floor number for reply ordering | Reply ordering, in-thread positioning | |
is_essence / essence / is_best |
Optional | Numeric | Whether the post is featured, boolean | Featured boost, community picks |
Content stats and governance
| Common field names | Semantic type | Priority | Processing type | Description | Search use |
|---|---|---|---|---|---|
content_length / word_count / char_num |
Optional | Numeric | Body length in characters | Long vs short routing, content stats | |
hot_rank / rank_no / list_rank |
Optional | Numeric | Rank position in a list, lower is better | Ranking lists, editorial slots | |
aigc_flag / is_ai_generated |
Optional | Numeric | Whether generated by AI, boolean | AIGC labeling and governance |
Semantic types vs plain fields
More semantic types in the console is not better. There is one rule: only fields that span forms and actually decide recall or filtering become semantic types; fields that serve a single niche form are left as plain index fields. That is why this article contains two kinds of fields — 49 with tags and 14 without.
The 21 semantic types added for content scenarios all live under the “Content Community” group in the console and can be selected directly:
CONTENT_TYPE, SITE_ID, ENTITIES, SOURCE_TYPE, ORIGINAL_FLAG, DURATION, TRANSCRIPT, VISIBILITY, SECURITY_LEVEL, TENANT_ID, READ_TIME, QUALITY_SCORE, HOT_SCORE, AUTHOR_ID, IS_TOP, KB_ID, KB_NAME, SECTION_PATH, CHUNK_ID, CHUNK_INDEX, PARENT_ID
Do not force a mismatch when no tag fits. The console supports plain index fields: index them directly with the type shown under “Processing” (keyword, tokenized text, numeric, date, boolean). Retrieval works the same; the only difference is that they are not reused semantically across datasets.
Capability mapping
| Capability | Fields it relies on |
|---|---|
| Title exact and fuzzy recall | TITLE、SUBTITLE |
| Full-text recall | DETAIL、TRANSCRIPT、ocr_text |
| Semantic (vector) search | TITLE + DETAIL + DESCRIPTION |
| Tag and channel filtering | TAGS、CATEGORY_ID、CATEGORY_PATH |
| Recency decay | PUBLISH_TIME、UPDATE_TIME、EXPIRE_TIME |
| Hotness and quality weighting | VIEW_COUNT、LIKE_COUNT、COMMENT_COUNT、SHARE_COUNT、HOT_SCORE、QUALITY_SCORE |
| Access and clearance filtering | VISIBILITY、SECURITY_LEVEL、TENANT_ID |
| Audio and video search | TRANSCRIPT、DURATION、caption_url |
| Knowledge-base chunk recall | KB_ID、CHUNK_ID、SECTION_PATH、page_no |
| Author and source feeds | AUTHOR、AUTHOR_ID、PUBLISHER、SOURCE_TYPE |
| Nearby content | location、REGION |
Sample records
Blog article (WordPress)
{
"item_id": "post-20481",
"doc_type": "article",
"title": "如何在 WordPress 中配置全文检索",
"summary": "从插件选型到索引重建,一次讲清 WordPress 站内搜索的完整链路。",
"body": "站内搜索体验差,通常不是排序算法的问题……",
"keywords": ["WordPress", "站内搜索", "全文检索"],
"tags": ["教程", "WordPress", "搜索"],
"category_id": "cat-tech",
"category_name": "技术",
"category_path": "技术/网站建设/WordPress",
"author_name": "李明",
"author_id": "u-1024",
"publisher": "通智博客",
"source_type": "PGC",
"original_flag": true,
"site_id": "blog-main",
"lang": "zh-Hans",
"url": "https://blog.example.com/wordpress-fulltext-search/",
"main_image": "https://cdn.example.com/cover/20481.jpg",
"publish_time": "2026-11-18T09:30:00+08:00",
"update_time": "2026-11-20T14:12:00+08:00",
"status": "published",
"view_count": 3820,
"like_count": 96,
"comment_count": 24,
"quality_score": 78
}
Short video (feed)
{
"item_id": "video-88213",
"doc_type": "video",
"title": "三分钟看懂大模型是怎么做召回的",
"transcript": "大家好,今天我们用三分钟讲清楚向量召回……",
"tags": ["大模型", "搜索引擎", "科普"],
"category_id": "ch-tech",
"category_name": "科技",
"author_name": "算法小站",
"author_id": "u-5511",
"publisher": "通智视频",
"source_type": "UGC",
"lang": "zh-Hans",
"url": "https://video.example.com/v/88213",
"main_image": "https://cdn.example.com/cover/88213.jpg",
"video_url": "https://cdn.example.com/media/88213.mp4",
"duration": 186,
"publish_time": "2026-11-25T20:00:00+08:00",
"status": "published",
"view_count": 125400,
"like_count": 8300,
"comment_count": 410,
"share_count": 1200,
"hot_score": 88
}
Knowledge-base chunk (Lark Docs)
{
"item_id": "kb-sop-0007-c3",
"doc_type": "kb_doc",
"parent_id": "kb-sop-0007",
"chunk_id": "kb-sop-0007-c3",
"chunk_index": 3,
"kb_id": "kb-sop",
"kb_name": "运维 SOP 知识库",
"section_path": "第三章/3.2 权限模型",
"title": "3.2 权限模型:角色与数据范围",
"summary": "说明平台三类角色的权限边界与数据范围继承规则。",
"body": "平台内置平台管理员、数据管理员、普通成员三类角色……",
"tags": ["权限", "SOP"],
"category_id": "kb-it",
"category_name": "IT 运维",
"author_name": "王工",
"lang": "zh-Hans",
"url": "https://docs.example.com/kb/sop/0007#c3",
"publish_time": "2026-09-02T10:00:00+08:00",
"tenant_id": "org-001",
"security_level": 2,
"visibility": "member",
"status": "published",
"page_no": 12
}
Pre-launch checklist
- All 14 required fields are populated with correct types — dates are not strings, numbers carry no units.
- item_id is globally unique and stays stable across incremental updates.
- title has site names and suffixes like “| Home” stripped, and is length-controlled.
- body is truncated by length; very long documents are chunked rather than stuffed into one field.
- tags and keywords are kept apart: tags are human-facing categories, keywords are retrieval-side supplements.
- publish_time uses one timezone; normalize cross-timezone data before ingest.
- Drafts and trashed items in status are never pushed into the index.
- Multilingual items all carry lang, and the three languages are not merged into one record.
- Where access matters, visibility or security_level is filled — do not expect the search layer to infer it.
- Knowledge-base items carry kb_id and chunk_id so a hit can be traced back to the document and section.
FAQ
Can long and short content share one index?
Yes, distinguish them with doc_type. When lengths vary wildly, use read_time or content_length to split ranking, otherwise long articles permanently outrank short ones.
Should multilingual content be split into separate indices?
For moderate volumes, one index is simpler and lang filtering does the job; the retrieval layer routes tokenization by language. Split by language once you reach tens of millions of items.
How do access fields take effect?
visibility and security_level are filters, not display switches. Write the true visibility of each item, send the requesting user scope with the query, and intersect the two.
Should knowledge-base chunks get their own index?
Keep chunks in the same index as documents and separate them by doc_type and chunk_id. A separate index makes original documents and snippets compete in one result list.
What if a video has no body text?
Put the subtitle or spoken transcript into transcript — it is the only text source for audio and video. Without it, search relies on title and tags alone and quality drops noticeably.
Next steps
With fields ready, the next step is turning them into a working search in the console: create a dataset (industry type: content community), push the data source, map semantic types, build the index, and wire up the Search API. If recall disappoints, run through the pre-launch checklist first — most issues are data-side.
- Index schema overview: Index Schema Reference
- Commerce fields: E-commerce Index Schema Reference
- API and parameters: Search API Reference
On this page
- How to use these fields
- Content forms and what they need
- Main field reference
- Identity and basics
- Content body
- Category and source
- Media
- Time, access and lifecycle
- Engagement and quality
- Geo and editorial
- Extended fields
- Knowledge base and chunks
- Document attachments
- Audio and video extras
- Forums and communities
- Content stats and governance
- Semantic types vs plain fields
- Capability mapping
- Sample records
- Blog article (WordPress)
- Short video (feed)
- Knowledge-base chunk (Lark Docs)
- Pre-launch checklist
- FAQ
- Can long and short content share one index?
- Should multilingual content be split into separate indices?
- How do access fields take effect?
- Should knowledge-base chunks get their own index?
- What if a video has no body text?
- Next steps