全部产品

App

更新时间:2020-06-05 11:02:29

描述

应用版本的数据结构

示例

  1. {
  2. "id": "100303063",
  3. "description": "",
  4. "status": "ok",
  5. "fetchFields": [
  6. "id",
  7. "title",
  8. "buy",
  9. "cate_id",
  10. "cate_name"
  11. ],
  12. "type": "enhanced",
  13. "schema": {
  14. "tables": {
  15. "main": {
  16. "primaryTable": true,
  17. "name": "main",
  18. "fields": {
  19. "id": {
  20. "name": "id",
  21. "type": "LITERAL",
  22. "primaryKey": true
  23. },
  24. "title": {
  25. "name": "title",
  26. "type": "TEXT",
  27. "primaryKey": false
  28. },
  29. "buy": {
  30. "name": "buy",
  31. "type": "INT",
  32. "primaryKey": false
  33. },
  34. "cate_id": {
  35. "name": "cate_id",
  36. "type": "INT",
  37. "primaryKey": false
  38. },
  39. "cate_name": {
  40. "name": "cate_name",
  41. "type": "LITERAL",
  42. "primaryKey": false
  43. }
  44. }
  45. }
  46. },
  47. "indexes": {
  48. "searchFields": {
  49. "id": {
  50. "fields": [
  51. "id"
  52. ]
  53. },
  54. "default": {
  55. "fields": [
  56. "title"
  57. ],
  58. "analyzer": "chn_standard"
  59. },
  60. "buy": {
  61. "fields": [
  62. "buy"
  63. ]
  64. }
  65. },
  66. "filterFields": [
  67. "id",
  68. "buy",
  69. "cate_id",
  70. "cate_name"
  71. ]
  72. }
  73. },
  74. "algoDeploymentId": 0,
  75. "firstRanks": [{
  76. "id": "",
  77. "name": "default",
  78. "description": "",
  79. "active": false,
  80. "meta": [{
  81. "attribute": "static_bm25()",
  82. "arg": "",
  83. "weight": 1
  84. }],
  85. "created": 0,
  86. "updated": 0
  87. },
  88. {
  89. "id": "887857",
  90. "name": "first_rank_lsh_1",
  91. "description": "",
  92. "active": true,
  93. "meta": [{
  94. "attribute": "static_bm25()",
  95. "arg": "",
  96. "weight": 10
  97. },
  98. {
  99. "attribute": "exact_match_boost()",
  100. "arg": "",
  101. "weight": 20
  102. },
  103. {
  104. "attribute": "buy",
  105. "arg": "",
  106. "weight": 30
  107. }
  108. ],
  109. "created": 1590977140,
  110. "updated": 1590977140
  111. }
  112. ],
  113. "secondRanks": [{
  114. "id": "-1",
  115. "name": "default",
  116. "meta": "",
  117. "active": true,
  118. "description": "",
  119. "created": 0,
  120. "updated": 0
  121. }],
  122. "dataSources": [],
  123. "summaries": [{
  124. "name": "default",
  125. "meta": [{
  126. "field": "title",
  127. "len": 50,
  128. "element": "em",
  129. "ellipsis": "...",
  130. "snippet": 1
  131. }]
  132. }],
  133. "created": 1590977140,
  134. "queryProcessors": [{
  135. "name": "sum_lsh_test_1",
  136. "active": true,
  137. "indexes": [
  138. "default"
  139. ],
  140. "processors": [{
  141. "useSystemDictionary": true,
  142. "interventionDictionary": "",
  143. "name": "stop_word"
  144. },
  145. {
  146. "useSystemDictionary": true,
  147. "interventionDictionary": "",
  148. "name": "spell_check"
  149. },
  150. {
  151. "useSystemDictionary": true,
  152. "interventionDictionary": "",
  153. "name": "term_weighting"
  154. },
  155. {
  156. "useSystemDictionary": true,
  157. "interventionDictionary": "",
  158. "name": "synonym"
  159. }
  160. ],
  161. "domain": "GENERAL",
  162. "created": 1590977142,
  163. "updated": 1590977142
  164. }],
  165. "progressPercent": 100
  166. }

结构

字段 类型 描述
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