全部产品

DescribeApp

更新时间:2020-06-23 11:19:03

描述

查看一个 opensearch 应用版本详情

方法

GET

URI

/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]

请求参数

路径参数

字段 类型 是否必要 示例值 描述
appGroupIdentity String “my_app_group_name” 应用名称
appId Integer 110116134 版本ID

返回参数

字段 类型 描述
requestId String 请求ID
result Object 版本信息
参考:App

示例

请求示例

  1. GET /v4/openapi/app-groups/os_function_test_v1/apps/100303063

返回示例

正确返回

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


错误返回
参考:响应结构