全部产品
云市场
云游戏

ListQueryProcessors

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

描述

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

方法

GET

URI

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

请求参数

路径参数

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

查询参数

字段 类型 是否必要 示例值 描述
isActive Integer 0 是否已设置为默认规则,默认值为0
- 0 表示查询所有
- 1 表示查询已设置为默认的规则
- 2 表示查询未设置为默认的规则

返回参数

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

示例

请求示例

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

返回示例

正确返回

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


错误返回
参考:响应结构