全部产品
云市场
云游戏

DescribeQueryProcessor

更新时间:2020-07-14 22:25:18

描述

获取指定 opensearch 应用版本的查询分析规则列表

方法

GET

URI

/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]

请求参数

路径参数

字段 类型 是否必要 示例值 描述
appGroupIdentity String “my_app_group_name” 应用名称
appId String “110157886” 版本号
name String “test” 规则名称

返回参数

字段 类型 描述
requestId String 请求ID
result Object 规则信息
参考:QueryProcessor

示例

请求示例

  1. GET /v4/openapi/app-groups/os_function_test_v1/apps/110157886/query-processors/test

返回示例

正确返回

  1. {
  2. "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  3. "result": {
  4. "name": "test",
  5. "active": true,
  6. "indexes": [
  7. "default"
  8. ],
  9. "processors": [
  10. {
  11. "useSystemDictionary": true,
  12. "name": "ner",
  13. "interventionDictionary": "",
  14. "priorities": [
  15. {
  16. "tag": "brand",
  17. "priority": "HIGH"
  18. },
  19. {
  20. "tag": "category",
  21. "priority": "HIGH"
  22. },
  23. {
  24. "tag": "material",
  25. "priority": "MIDDLE"
  26. },
  27. {
  28. "tag": "element",
  29. "priority": "MIDDLE"
  30. },
  31. {
  32. "tag": "style",
  33. "priority": "MIDDLE"
  34. },
  35. {
  36. "tag": "color",
  37. "priority": "MIDDLE"
  38. },
  39. {
  40. "tag": "function",
  41. "priority": "MIDDLE"
  42. },
  43. {
  44. "tag": "scenario",
  45. "priority": "MIDDLE"
  46. },
  47. {
  48. "tag": "people",
  49. "priority": "MIDDLE"
  50. },
  51. {
  52. "tag": "season",
  53. "priority": "MIDDLE"
  54. },
  55. {
  56. "tag": "model",
  57. "priority": "MIDDLE"
  58. },
  59. {
  60. "tag": "region",
  61. "priority": "MIDDLE"
  62. },
  63. {
  64. "tag": "name",
  65. "priority": "MIDDLE"
  66. },
  67. {
  68. "tag": "adjective",
  69. "priority": "MIDDLE"
  70. },
  71. {
  72. "tag": "category-modifier",
  73. "priority": "MIDDLE"
  74. },
  75. {
  76. "tag": "size",
  77. "priority": "LOW"
  78. },
  79. {
  80. "tag": "quality",
  81. "priority": "LOW"
  82. },
  83. {
  84. "tag": "suit",
  85. "priority": "LOW"
  86. },
  87. {
  88. "tag": "new-release",
  89. "priority": "LOW"
  90. },
  91. {
  92. "tag": "series",
  93. "priority": "LOW"
  94. },
  95. {
  96. "tag": "marketing",
  97. "priority": "LOW"
  98. },
  99. {
  100. "tag": "entertainment",
  101. "priority": "LOW"
  102. },
  103. {
  104. "tag": "organization",
  105. "priority": "LOW"
  106. },
  107. {
  108. "tag": "movie",
  109. "priority": "LOW"
  110. },
  111. {
  112. "tag": "game",
  113. "priority": "LOW"
  114. },
  115. {
  116. "tag": "number",
  117. "priority": "LOW"
  118. },
  119. {
  120. "tag": "unit",
  121. "priority": "LOW"
  122. },
  123. {
  124. "tag": "common",
  125. "priority": "LOW"
  126. },
  127. {
  128. "tag": "new-word",
  129. "priority": "LOW"
  130. },
  131. {
  132. "tag": "proper-noun",
  133. "priority": "LOW"
  134. },
  135. {
  136. "tag": "symbol",
  137. "priority": "LOW"
  138. },
  139. {
  140. "tag": "prefix",
  141. "priority": "LOW"
  142. },
  143. {
  144. "tag": "suffix",
  145. "priority": "LOW"
  146. },
  147. {
  148. "tag": "gift",
  149. "priority": "LOW"
  150. },
  151. {
  152. "tag": "negative",
  153. "priority": "LOW"
  154. },
  155. {
  156. "tag": "agent",
  157. "priority": "LOW"
  158. }
  159. ]
  160. },
  161. {
  162. "useSystemDictionary": true,
  163. "name": "synonym",
  164. "interventionDictionary": ""
  165. },
  166. {
  167. "use_system_dictionary": true,
  168. "name": "term_weighting",
  169. "interventionDictionary": ""
  170. },
  171. {
  172. "use_system_dictionary": true,
  173. "name": "spell_check",
  174. "interventionDictionary": ""
  175. },
  176. {
  177. "name": "category_prediction",
  178. "categoryPrediction": "60",
  179. "projectId": 848
  180. }
  181. ],
  182. "domain": "GENERAL",
  183. "created": 1587398402,
  184. "updated": 1587398402
  185. }
  186. }


错误返回
参考:响应结构