描述
應用版本的資料結構
樣本
{
"id": "100303063",
"description": "",
"status": "ok",
"fetchFields": [
"id",
"title",
"buy",
"cate_id",
"cate_name"
],
"type": "enhanced",
"schema": {
"tables": {
"main": {
"primaryTable": true,
"name": "main",
"fields": {
"id": {
"name": "id",
"type": "LITERAL",
"primaryKey": true
},
"title": {
"name": "title",
"type": "TEXT",
"primaryKey": false
},
"buy": {
"name": "buy",
"type": "INT",
"primaryKey": false
},
"cate_id": {
"name": "cate_id",
"type": "INT",
"primaryKey": false
},
"cate_name": {
"name": "cate_name",
"type": "LITERAL",
"primaryKey": false
}
}
}
},
"indexes": {
"searchFields": {
"id": {
"fields": [
"id"
]
},
"default": {
"fields": [
"title"
],
"analyzer": "chn_standard"
},
"buy": {
"fields": [
"buy"
]
}
},
"filterFields": [
"id",
"buy",
"cate_id",
"cate_name"
]
}
},
"algoDeploymentId": 0,
"firstRanks": [{
"id": "",
"name": "default",
"description": "",
"active": false,
"meta": [{
"attribute": "static_bm25()",
"arg": "",
"weight": 1
}],
"created": 0,
"updated": 0
},
{
"id": "887857",
"name": "first_rank_lsh_1",
"description": "",
"active": true,
"meta": [{
"attribute": "static_bm25()",
"arg": "",
"weight": 10
},
{
"attribute": "exact_match_boost()",
"arg": "",
"weight": 20
},
{
"attribute": "buy",
"arg": "",
"weight": 30
}
],
"created": 1590977140,
"updated": 1590977140
}
],
"secondRanks": [{
"id": "-1",
"name": "default",
"meta": "",
"active": true,
"description": "",
"created": 0,
"updated": 0
}],
"dataSources": [],
"summaries": [{
"name": "default",
"meta": [{
"field": "title",
"len": 50,
"element": "em",
"ellipsis": "...",
"snippet": 1
}]
}],
"created": 1590977140,
"queryProcessors": [{
"name": "sum_lsh_test_1",
"active": true,
"indexes": [
"default"
],
"processors": [{
"useSystemDictionary": true,
"interventionDictionary": "",
"name": "stop_word"
},
{
"useSystemDictionary": true,
"interventionDictionary": "",
"name": "spell_check"
},
{
"useSystemDictionary": true,
"interventionDictionary": "",
"name": "term_weighting"
},
{
"useSystemDictionary": true,
"interventionDictionary": "",
"name": "synonym"
}
],
"domain": "GENERAL",
"created": 1590977142,
"updated": 1590977142
}],
"progressPercent": 100
}結構
欄位 | 類型 | 描述 |
id | String | 版本ID |
description | String | 版本描述 |
status | String | 版本狀態- ok 正常- stopped 暫停- frozen 已凍結- initializing 版本初始化中- unavailable 版本已失效- data_waiting 等待資料初始化- data_preparing 資料初始化中 |
fetchFields | Array | 預設展示欄位 |
type | String | 版本類型- standard 標準版- advance 老進階版(新應用不支援此類型)- enhanced 新進階版 |
schema | Object | 應用結構參考:Schema |
algoDeploymentId | Integer | 粗排部署 ID |
progressPercent | Integer | 資料匯入進度百分比(如83代表83%) |
created | Integer | 版本建立時間戳記 |
firstRanks[] | Object | 粗排運算式配置詳情參考:FirstRank |
secondRanks[] | Object | 精排運算式配置詳情參考:SecondRank |
dataSources[] | Object | 資料來源詳情參考:DataSource |
summaries[] | Object | 搜尋結果摘要設定參考:Summary |
queryProcessors[] | Object | 查詢意圖理解規則配置詳情參考:QueryProcessor |