indexea_client 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3413 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +685 -0
  6. data/docs/AccountBean.md +27 -0
  7. data/docs/AccountPasswdBody.md +8 -0
  8. data/docs/AccountPortraitBody.md +7 -0
  9. data/docs/AccountProfileBody.md +8 -0
  10. data/docs/AccountResetpwdBody.md +9 -0
  11. data/docs/AccountSigninBody.md +9 -0
  12. data/docs/AccountSignupBody.md +10 -0
  13. data/docs/AccountsFeedbackBody.md +8 -0
  14. data/docs/AccountsMessageBody.md +8 -0
  15. data/docs/AnalyzeObject.md +8 -0
  16. data/docs/AnalyzeToken.md +11 -0
  17. data/docs/AppBean.md +23 -0
  18. data/docs/AppCompanyBody.md +22 -0
  19. data/docs/AppIndexBody.md +7 -0
  20. data/docs/AppLogAccount.md +9 -0
  21. data/docs/AppLogBean.md +19 -0
  22. data/docs/AppLogsBean.md +9 -0
  23. data/docs/AppMentorBean.md +14 -0
  24. data/docs/AppOauthBody.md +7 -0
  25. data/docs/AppOauthBody1.md +7 -0
  26. data/docs/AppOauthresetsecretBody.md +7 -0
  27. data/docs/AppTokensBody.md +7 -0
  28. data/docs/AppTokensBody1.md +7 -0
  29. data/docs/AppWidgetBody.md +7 -0
  30. data/docs/AppsApi.md +1843 -0
  31. data/docs/AppsAppBody.md +8 -0
  32. data/docs/AppsBody.md +8 -0
  33. data/docs/AutoCompleteItem.md +9 -0
  34. data/docs/BlacklistBean.md +12 -0
  35. data/docs/Bulletin.md +15 -0
  36. data/docs/CompanyBean.md +24 -0
  37. data/docs/ContactForm.md +11 -0
  38. data/docs/CrawlerLog.md +14 -0
  39. data/docs/CrawlerLogs.md +8 -0
  40. data/docs/CrawlerTask.md +16 -0
  41. data/docs/FieldsApi.md +215 -0
  42. data/docs/GlobalApi.md +258 -0
  43. data/docs/GlobalOptionForm.md +8 -0
  44. data/docs/IndexBean.md +26 -0
  45. data/docs/IndexFieldBean.md +8 -0
  46. data/docs/IndexForm.md +15 -0
  47. data/docs/IndexRebuildForm.md +12 -0
  48. data/docs/IndexSettings.md +10 -0
  49. data/docs/IndexSettingsBody.md +7 -0
  50. data/docs/IndexStatBean.md +14 -0
  51. data/docs/IndexSynonymsflushBody.md +7 -0
  52. data/docs/IndexTask.md +13 -0
  53. data/docs/IndexTemplate.md +17 -0
  54. data/docs/IndexTemplates.md +8 -0
  55. data/docs/IndexUploadBody.md +7 -0
  56. data/docs/IndicesApi.md +1620 -0
  57. data/docs/IntelligentMapping.md +8 -0
  58. data/docs/KeywordBindingBean.md +14 -0
  59. data/docs/MentorForm.md +8 -0
  60. data/docs/Message.md +18 -0
  61. data/docs/MessageApi.md +262 -0
  62. data/docs/Messages.md +8 -0
  63. data/docs/OauthAppBean.md +20 -0
  64. data/docs/OpenidBean.md +10 -0
  65. data/docs/OptionForm.md +10 -0
  66. data/docs/OrdersIdentBody.md +7 -0
  67. data/docs/PayResult.md +9 -0
  68. data/docs/PaymentApi.md +788 -0
  69. data/docs/PaymentInvoice.md +15 -0
  70. data/docs/PaymentOrder.md +25 -0
  71. data/docs/PaymentRecord.md +13 -0
  72. data/docs/PaymentService.md +12 -0
  73. data/docs/QueriesApi.md +1821 -0
  74. data/docs/QueryActionBean.md +27 -0
  75. data/docs/QueryBean.md +22 -0
  76. data/docs/QueryForm.md +15 -0
  77. data/docs/QueryNode.md +10 -0
  78. data/docs/QuerySortField.md +9 -0
  79. data/docs/QueryVariableBean.md +17 -0
  80. data/docs/RecommendApi.md +365 -0
  81. data/docs/RecommendBean.md +18 -0
  82. data/docs/RecordFilter.md +10 -0
  83. data/docs/RecordsApi.md +286 -0
  84. data/docs/SearchApi.md +646 -0
  85. data/docs/SearchEstimateResult.md +11 -0
  86. data/docs/SearchWord.md +8 -0
  87. data/docs/StatIndexBean.md +14 -0
  88. data/docs/StatsApi.md +245 -0
  89. data/docs/SynonymsBean.md +14 -0
  90. data/docs/TokenBean.md +12 -0
  91. data/docs/TriggerBean.md +13 -0
  92. data/docs/TriggerLogBean.md +15 -0
  93. data/docs/ValueOfField.md +8 -0
  94. data/docs/WidgetBean.md +21 -0
  95. data/docs/WidgetForm.md +13 -0
  96. data/docs/WidgetLogo.md +7 -0
  97. data/docs/WidgetLogoBody.md +7 -0
  98. data/docs/WidgetStatusForm.md +8 -0
  99. data/docs/WidgetsApi.md +573 -0
  100. data/git_push.sh +55 -0
  101. data/indexea_client.gemspec +38 -0
  102. data/lib/indexea_client/api/account_api.rb +846 -0
  103. data/lib/indexea_client/api/apps_api.rb +2271 -0
  104. data/lib/indexea_client/api/fields_api.rb +289 -0
  105. data/lib/indexea_client/api/global_api.rb +326 -0
  106. data/lib/indexea_client/api/indices_api.rb +2076 -0
  107. data/lib/indexea_client/api/message_api.rb +337 -0
  108. data/lib/indexea_client/api/payment_api.rb +975 -0
  109. data/lib/indexea_client/api/queries_api.rb +2320 -0
  110. data/lib/indexea_client/api/recommend_api.rb +461 -0
  111. data/lib/indexea_client/api/records_api.rb +375 -0
  112. data/lib/indexea_client/api/search_api.rb +892 -0
  113. data/lib/indexea_client/api/stats_api.rb +312 -0
  114. data/lib/indexea_client/api/widgets_api.rb +741 -0
  115. data/lib/indexea_client/api_client.rb +391 -0
  116. data/lib/indexea_client/api_error.rb +57 -0
  117. data/lib/indexea_client/configuration.rb +205 -0
  118. data/lib/indexea_client/models/account_bean.rb +396 -0
  119. data/lib/indexea_client/models/account_passwd_body.rb +227 -0
  120. data/lib/indexea_client/models/account_portrait_body.rb +206 -0
  121. data/lib/indexea_client/models/account_profile_body.rb +228 -0
  122. data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
  123. data/lib/indexea_client/models/account_signin_body.rb +237 -0
  124. data/lib/indexea_client/models/account_signup_body.rb +254 -0
  125. data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
  126. data/lib/indexea_client/models/accounts_message_body.rb +226 -0
  127. data/lib/indexea_client/models/analyze_object.rb +216 -0
  128. data/lib/indexea_client/models/analyze_token.rb +243 -0
  129. data/lib/indexea_client/models/app_bean.rb +360 -0
  130. data/lib/indexea_client/models/app_company_body.rb +357 -0
  131. data/lib/indexea_client/models/app_index_body.rb +212 -0
  132. data/lib/indexea_client/models/app_log_account.rb +224 -0
  133. data/lib/indexea_client/models/app_log_bean.rb +318 -0
  134. data/lib/indexea_client/models/app_logs_bean.rb +229 -0
  135. data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
  136. data/lib/indexea_client/models/app_oauth_body.rb +206 -0
  137. data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
  138. data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
  139. data/lib/indexea_client/models/app_tokens_body.rb +212 -0
  140. data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
  141. data/lib/indexea_client/models/app_widget_body.rb +212 -0
  142. data/lib/indexea_client/models/apps_app_body.rb +216 -0
  143. data/lib/indexea_client/models/apps_body.rb +221 -0
  144. data/lib/indexea_client/models/auto_complete_item.rb +224 -0
  145. data/lib/indexea_client/models/blacklist_bean.rb +258 -0
  146. data/lib/indexea_client/models/bulletin.rb +312 -0
  147. data/lib/indexea_client/models/company_bean.rb +378 -0
  148. data/lib/indexea_client/models/contact_form.rb +258 -0
  149. data/lib/indexea_client/models/crawler_log.rb +270 -0
  150. data/lib/indexea_client/models/crawler_logs.rb +217 -0
  151. data/lib/indexea_client/models/crawler_task.rb +288 -0
  152. data/lib/indexea_client/models/global_option_form.rb +218 -0
  153. data/lib/indexea_client/models/index_bean.rb +390 -0
  154. data/lib/indexea_client/models/index_field_bean.rb +217 -0
  155. data/lib/indexea_client/models/index_form.rb +283 -0
  156. data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
  157. data/lib/indexea_client/models/index_settings.rb +234 -0
  158. data/lib/indexea_client/models/index_settings_body.rb +212 -0
  159. data/lib/indexea_client/models/index_stat_bean.rb +270 -0
  160. data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
  161. data/lib/indexea_client/models/index_task.rb +261 -0
  162. data/lib/indexea_client/models/index_template.rb +299 -0
  163. data/lib/indexea_client/models/index_templates.rb +219 -0
  164. data/lib/indexea_client/models/index_upload_body.rb +208 -0
  165. data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
  166. data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
  167. data/lib/indexea_client/models/mentor_form.rb +220 -0
  168. data/lib/indexea_client/models/message.rb +306 -0
  169. data/lib/indexea_client/models/messages.rb +217 -0
  170. data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
  171. data/lib/indexea_client/models/openid_bean.rb +238 -0
  172. data/lib/indexea_client/models/option_form.rb +287 -0
  173. data/lib/indexea_client/models/orders_ident_body.rb +206 -0
  174. data/lib/indexea_client/models/pay_result.rb +258 -0
  175. data/lib/indexea_client/models/payment_invoice.rb +283 -0
  176. data/lib/indexea_client/models/payment_order.rb +412 -0
  177. data/lib/indexea_client/models/payment_record.rb +261 -0
  178. data/lib/indexea_client/models/payment_service.rb +258 -0
  179. data/lib/indexea_client/models/query_action_bean.rb +391 -0
  180. data/lib/indexea_client/models/query_bean.rb +348 -0
  181. data/lib/indexea_client/models/query_form.rb +285 -0
  182. data/lib/indexea_client/models/query_node.rb +234 -0
  183. data/lib/indexea_client/models/query_sort_field.rb +264 -0
  184. data/lib/indexea_client/models/query_variable_bean.rb +335 -0
  185. data/lib/indexea_client/models/recommend_bean.rb +318 -0
  186. data/lib/indexea_client/models/record_filter.rb +242 -0
  187. data/lib/indexea_client/models/search_estimate_result.rb +242 -0
  188. data/lib/indexea_client/models/search_word.rb +218 -0
  189. data/lib/indexea_client/models/stat_index_bean.rb +270 -0
  190. data/lib/indexea_client/models/synonyms_bean.rb +274 -0
  191. data/lib/indexea_client/models/token_bean.rb +252 -0
  192. data/lib/indexea_client/models/trigger_bean.rb +263 -0
  193. data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
  194. data/lib/indexea_client/models/value_of_field.rb +217 -0
  195. data/lib/indexea_client/models/widget_bean.rb +387 -0
  196. data/lib/indexea_client/models/widget_form.rb +328 -0
  197. data/lib/indexea_client/models/widget_logo.rb +206 -0
  198. data/lib/indexea_client/models/widget_logo_body.rb +206 -0
  199. data/lib/indexea_client/models/widget_status_form.rb +223 -0
  200. data/lib/indexea_client/version.rb +14 -0
  201. data/lib/indexea_client.rb +133 -0
  202. data/spec/api/account_api_spec.rb +200 -0
  203. data/spec/api/apps_api_spec.rb +492 -0
  204. data/spec/api/fields_api_spec.rb +86 -0
  205. data/spec/api/global_api_spec.rb +98 -0
  206. data/spec/api/indices_api_spec.rb +434 -0
  207. data/spec/api/message_api_spec.rb +96 -0
  208. data/spec/api/payment_api_spec.rb +227 -0
  209. data/spec/api/queries_api_spec.rb +482 -0
  210. data/spec/api/recommend_api_spec.rb +125 -0
  211. data/spec/api/records_api_spec.rb +107 -0
  212. data/spec/api/search_api_spec.rb +220 -0
  213. data/spec/api/stats_api_spec.rb +99 -0
  214. data/spec/api/widgets_api_spec.rb +174 -0
  215. data/spec/api_client_spec.rb +225 -0
  216. data/spec/base_object_spec.rb +109 -0
  217. data/spec/configuration_spec.rb +41 -0
  218. data/spec/models/account_bean_spec.rb +160 -0
  219. data/spec/models/account_passwd_body_spec.rb +46 -0
  220. data/spec/models/account_portrait_body_spec.rb +40 -0
  221. data/spec/models/account_profile_body_spec.rb +46 -0
  222. data/spec/models/account_resetpwd_body_spec.rb +52 -0
  223. data/spec/models/account_signin_body_spec.rb +52 -0
  224. data/spec/models/account_signup_body_spec.rb +58 -0
  225. data/spec/models/accounts_feedback_body_spec.rb +50 -0
  226. data/spec/models/accounts_message_body_spec.rb +46 -0
  227. data/spec/models/analyze_object_spec.rb +46 -0
  228. data/spec/models/analyze_token_spec.rb +64 -0
  229. data/spec/models/app_bean_spec.rb +136 -0
  230. data/spec/models/app_company_body_spec.rb +130 -0
  231. data/spec/models/app_index_body_spec.rb +40 -0
  232. data/spec/models/app_log_account_spec.rb +52 -0
  233. data/spec/models/app_log_bean_spec.rb +112 -0
  234. data/spec/models/app_logs_bean_spec.rb +52 -0
  235. data/spec/models/app_mentor_bean_spec.rb +82 -0
  236. data/spec/models/app_oauth_body_1_spec.rb +40 -0
  237. data/spec/models/app_oauth_body_spec.rb +40 -0
  238. data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
  239. data/spec/models/app_tokens_body_1_spec.rb +40 -0
  240. data/spec/models/app_tokens_body_spec.rb +40 -0
  241. data/spec/models/app_widget_body_spec.rb +40 -0
  242. data/spec/models/apps_app_body_spec.rb +46 -0
  243. data/spec/models/apps_body_spec.rb +46 -0
  244. data/spec/models/auto_complete_item_spec.rb +52 -0
  245. data/spec/models/blacklist_bean_spec.rb +70 -0
  246. data/spec/models/bulletin_spec.rb +92 -0
  247. data/spec/models/company_bean_spec.rb +142 -0
  248. data/spec/models/contact_form_spec.rb +64 -0
  249. data/spec/models/crawler_log_spec.rb +82 -0
  250. data/spec/models/crawler_logs_spec.rb +46 -0
  251. data/spec/models/crawler_task_spec.rb +94 -0
  252. data/spec/models/global_option_form_spec.rb +46 -0
  253. data/spec/models/index_bean_spec.rb +154 -0
  254. data/spec/models/index_field_bean_spec.rb +46 -0
  255. data/spec/models/index_form_spec.rb +88 -0
  256. data/spec/models/index_rebuild_form_spec.rb +70 -0
  257. data/spec/models/index_settings_body_spec.rb +40 -0
  258. data/spec/models/index_settings_spec.rb +58 -0
  259. data/spec/models/index_stat_bean_spec.rb +82 -0
  260. data/spec/models/index_synonymsflush_body_spec.rb +40 -0
  261. data/spec/models/index_task_spec.rb +76 -0
  262. data/spec/models/index_template_spec.rb +100 -0
  263. data/spec/models/index_templates_spec.rb +46 -0
  264. data/spec/models/index_upload_body_spec.rb +40 -0
  265. data/spec/models/intelligent_mapping_spec.rb +46 -0
  266. data/spec/models/keyword_binding_bean_spec.rb +82 -0
  267. data/spec/models/mentor_form_spec.rb +46 -0
  268. data/spec/models/message_spec.rb +106 -0
  269. data/spec/models/messages_spec.rb +46 -0
  270. data/spec/models/oauth_app_bean_spec.rb +118 -0
  271. data/spec/models/openid_bean_spec.rb +58 -0
  272. data/spec/models/option_form_spec.rb +62 -0
  273. data/spec/models/orders_ident_body_spec.rb +40 -0
  274. data/spec/models/pay_result_spec.rb +56 -0
  275. data/spec/models/payment_invoice_spec.rb +88 -0
  276. data/spec/models/payment_order_spec.rb +152 -0
  277. data/spec/models/payment_record_spec.rb +76 -0
  278. data/spec/models/payment_service_spec.rb +70 -0
  279. data/spec/models/query_action_bean_spec.rb +160 -0
  280. data/spec/models/query_bean_spec.rb +130 -0
  281. data/spec/models/query_form_spec.rb +88 -0
  282. data/spec/models/query_node_spec.rb +58 -0
  283. data/spec/models/query_sort_field_spec.rb +56 -0
  284. data/spec/models/query_variable_bean_spec.rb +104 -0
  285. data/spec/models/recommend_bean_spec.rb +106 -0
  286. data/spec/models/record_filter_spec.rb +58 -0
  287. data/spec/models/search_estimate_result_spec.rb +64 -0
  288. data/spec/models/search_word_spec.rb +46 -0
  289. data/spec/models/stat_index_bean_spec.rb +82 -0
  290. data/spec/models/synonyms_bean_spec.rb +82 -0
  291. data/spec/models/token_bean_spec.rb +70 -0
  292. data/spec/models/trigger_bean_spec.rb +76 -0
  293. data/spec/models/trigger_log_bean_spec.rb +88 -0
  294. data/spec/models/value_of_field_spec.rb +46 -0
  295. data/spec/models/widget_bean_spec.rb +132 -0
  296. data/spec/models/widget_form_spec.rb +84 -0
  297. data/spec/models/widget_logo_body_spec.rb +40 -0
  298. data/spec/models/widget_logo_spec.rb +40 -0
  299. data/spec/models/widget_status_form_spec.rb +46 -0
  300. data/spec/spec_helper.rb +110 -0
  301. metadata +501 -0
@@ -0,0 +1,1821 @@
1
+ # IndexeaClient::QueriesApi
2
+
3
+ All URIs are relative to *https://api.indexea.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**query_analyze**](QueriesApi.md#query_analyze) | **POST** /queries/{app}/analyze | 分词测试
8
+ [**query_copy**](QueriesApi.md#query_copy) | **POST** /queries/{app}/copy | 复制指定查询并创建新查询
9
+ [**query_copy_to_query**](QueriesApi.md#query_copy_to_query) | **PUT** /queries/{app}/copy | 复制查询到已有查询
10
+ [**query_create**](QueriesApi.md#query_create) | **POST** /queries/{app} | 创建搜索
11
+ [**query_create_keyword_bindings**](QueriesApi.md#query_create_keyword_bindings) | **POST** /queries/{app}/keyword-bindings | 创建新的关键词文档绑定
12
+ [**query_create_variable**](QueriesApi.md#query_create_variable) | **POST** /queries/{app}/variables | 创建新的预定义查询变量
13
+ [**query_delete**](QueriesApi.md#query_delete) | **DELETE** /queries/{app} | 删除搜索
14
+ [**query_delete_keyword_bindings**](QueriesApi.md#query_delete_keyword_bindings) | **DELETE** /queries/{app}/keyword-bindings | 删除关键词文档绑定
15
+ [**query_delete_node_positions**](QueriesApi.md#query_delete_node_positions) | **DELETE** /queries/{app}/node-positions | 清除查询条件的节点位置信息
16
+ [**query_delete_variable**](QueriesApi.md#query_delete_variable) | **DELETE** /queries/{app}/variables | 删除预定义查询变量
17
+ [**query_fields**](QueriesApi.md#query_fields) | **GET** /queries/{app}/fields | 获取查询关联的所有索引的字段信息
18
+ [**query_get**](QueriesApi.md#query_get) | **GET** /queries/{app}/{query} | 获取查询的详情
19
+ [**query_get_node_positions**](QueriesApi.md#query_get_node_positions) | **GET** /queries/{app}/node-positions | 获取查询条件的节点位置信息
20
+ [**query_get_record**](QueriesApi.md#query_get_record) | **GET** /queries/{app}/record | 获取记录的详情
21
+ [**query_keyword_bindings**](QueriesApi.md#query_keyword_bindings) | **GET** /queries/{app}/keyword-bindings | 获取查询的关键词文档绑定列表
22
+ [**query_list**](QueriesApi.md#query_list) | **GET** /queries/{app} | 获取应用下所有索引下的查询列表(按索引进行分组)
23
+ [**query_profile**](QueriesApi.md#query_profile) | **GET** /queries/{app}/profiler | 获取搜索诊断信息
24
+ [**query_records_of_keyword_binding**](QueriesApi.md#query_records_of_keyword_binding) | **GET** /queries/{app}/keyword-bindings-records | 获取关键词绑定对应的记录列表
25
+ [**query_save_intelligent_mappings**](QueriesApi.md#query_save_intelligent_mappings) | **PUT** /queries/{app}/intelligent-mappings | 设置索引智能匹配字段
26
+ [**query_save_node_positions**](QueriesApi.md#query_save_node_positions) | **PUT** /queries/{app}/node-positions | 保存查询条件的节点位置信息
27
+ [**query_search**](QueriesApi.md#query_search) | **GET** /queries/{app}/search | 搜索测试
28
+ [**query_source**](QueriesApi.md#query_source) | **POST** /queries/{app}/{query} | 获取最终查询的源码(JSON)
29
+ [**query_suggest**](QueriesApi.md#query_suggest) | **GET** /queries/{app}/suggest | 获取搜索建议列表
30
+ [**query_test_intelligent_mappings**](QueriesApi.md#query_test_intelligent_mappings) | **POST** /queries/{app}/intelligent-mappings | 测试索引智能匹配字段
31
+ [**query_update**](QueriesApi.md#query_update) | **PUT** /queries/{app} | 修改查询
32
+ [**query_update_keyword_bindings**](QueriesApi.md#query_update_keyword_bindings) | **PATCH** /queries/{app}/keyword-bindings | 修改关键词文档绑定
33
+ [**query_update_settings**](QueriesApi.md#query_update_settings) | **POST** /queries/{app}/settings | 更改查询的设置项
34
+ [**query_update_variable**](QueriesApi.md#query_update_variable) | **PATCH** /queries/{app}/variables | 修改预定义查询变量
35
+ [**query_validate**](QueriesApi.md#query_validate) | **GET** /queries/{app}/validate | 获取搜索验证结果
36
+ [**query_validate_aggregation**](QueriesApi.md#query_validate_aggregation) | **POST** /queries/{app}/validate-aggregation | 验证聚合定义是否正确
37
+ [**query_validate_query**](QueriesApi.md#query_validate_query) | **POST** /queries/{app}/validate-query | 验证聚合定义是否正确
38
+ [**query_validate_script_field**](QueriesApi.md#query_validate_script_field) | **POST** /queries/{app}/validate-script-field | 验证脚本字段是否正确
39
+ [**query_validate_script_score**](QueriesApi.md#query_validate_script_score) | **POST** /queries/{app}/validate-script-score | 验证脚本字段是否正确
40
+ [**query_validate_suggestion**](QueriesApi.md#query_validate_suggestion) | **POST** /queries/{app}/validate-suggest | 验证建议是否正确
41
+ [**query_variables**](QueriesApi.md#query_variables) | **GET** /queries/{app}/variables | 获取应用的预定义查询变量列表
42
+
43
+ # **query_analyze**
44
+ > Array<AnalyzeToken> query_analyze(bodyapp, opts)
45
+
46
+ 分词测试
47
+
48
+ ### Example
49
+ ```ruby
50
+ # load the gem
51
+ require 'indexea_client'
52
+ # setup authorization
53
+ IndexeaClient.configure do |config|
54
+ end
55
+
56
+ api_instance = IndexeaClient::QueriesApi.new
57
+ body = IndexeaClient::AnalyzeObject.new # AnalyzeObject |
58
+ app = 'app_example' # String | 应用标识
59
+ opts = {
60
+ index: IndexeaClient::BigDecimal.new # BigDecimal | 索引编号,如果指定索引编号则使用索引的分词器
61
+ }
62
+
63
+ begin
64
+ #分词测试
65
+ result = api_instance.query_analyze(bodyapp, opts)
66
+ p result
67
+ rescue IndexeaClient::ApiError => e
68
+ puts "Exception when calling QueriesApi->query_analyze: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ Name | Type | Description | Notes
75
+ ------------- | ------------- | ------------- | -------------
76
+ **body** | [**AnalyzeObject**](AnalyzeObject.md)| |
77
+ **app** | **String**| 应用标识 |
78
+ **index** | **BigDecimal**| 索引编号,如果指定索引编号则使用索引的分词器 | [optional] [default to 0]
79
+
80
+ ### Return type
81
+
82
+ [**Array<AnalyzeToken>**](AnalyzeToken.md)
83
+
84
+ ### Authorization
85
+
86
+ [TokenAuth](../README.md#TokenAuth)
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: application/json
91
+ - **Accept**: application/json
92
+
93
+
94
+
95
+ # **query_copy**
96
+ > QueryBean query_copy(app, query)
97
+
98
+ 复制指定查询并创建新查询
99
+
100
+ ### Example
101
+ ```ruby
102
+ # load the gem
103
+ require 'indexea_client'
104
+ # setup authorization
105
+ IndexeaClient.configure do |config|
106
+ end
107
+
108
+ api_instance = IndexeaClient::QueriesApi.new
109
+ app = 'app_example' # String | 应用标识
110
+ query = 56 # Integer | 源查询编号
111
+
112
+
113
+ begin
114
+ #复制指定查询并创建新查询
115
+ result = api_instance.query_copy(app, query)
116
+ p result
117
+ rescue IndexeaClient::ApiError => e
118
+ puts "Exception when calling QueriesApi->query_copy: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ Name | Type | Description | Notes
125
+ ------------- | ------------- | ------------- | -------------
126
+ **app** | **String**| 应用标识 |
127
+ **query** | **Integer**| 源查询编号 |
128
+
129
+ ### Return type
130
+
131
+ [**QueryBean**](QueryBean.md)
132
+
133
+ ### Authorization
134
+
135
+ [TokenAuth](../README.md#TokenAuth)
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: Not defined
140
+ - **Accept**: application/json
141
+
142
+
143
+
144
+ # **query_copy_to_query**
145
+ > BOOLEAN query_copy_to_query(app, query, to)
146
+
147
+ 复制查询到已有查询
148
+
149
+ ### Example
150
+ ```ruby
151
+ # load the gem
152
+ require 'indexea_client'
153
+ # setup authorization
154
+ IndexeaClient.configure do |config|
155
+ end
156
+
157
+ api_instance = IndexeaClient::QueriesApi.new
158
+ app = 'app_example' # String | 应用标识
159
+ query = 56 # Integer | 源查询编号
160
+ to = 56 # Integer | 目标查询编号
161
+
162
+
163
+ begin
164
+ #复制查询到已有查询
165
+ result = api_instance.query_copy_to_query(app, query, to)
166
+ p result
167
+ rescue IndexeaClient::ApiError => e
168
+ puts "Exception when calling QueriesApi->query_copy_to_query: #{e}"
169
+ end
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ Name | Type | Description | Notes
175
+ ------------- | ------------- | ------------- | -------------
176
+ **app** | **String**| 应用标识 |
177
+ **query** | **Integer**| 源查询编号 |
178
+ **to** | **Integer**| 目标查询编号 |
179
+
180
+ ### Return type
181
+
182
+ **BOOLEAN**
183
+
184
+ ### Authorization
185
+
186
+ [TokenAuth](../README.md#TokenAuth)
187
+
188
+ ### HTTP request headers
189
+
190
+ - **Content-Type**: Not defined
191
+ - **Accept**: application/json
192
+
193
+
194
+
195
+ # **query_create**
196
+ > QueryBean query_create(bodyapp)
197
+
198
+ 创建搜索
199
+
200
+ ### Example
201
+ ```ruby
202
+ # load the gem
203
+ require 'indexea_client'
204
+ # setup authorization
205
+ IndexeaClient.configure do |config|
206
+ end
207
+
208
+ api_instance = IndexeaClient::QueriesApi.new
209
+ body = IndexeaClient::QueryForm.new # QueryForm |
210
+ app = 'app_example' # String | 应用标识
211
+
212
+
213
+ begin
214
+ #创建搜索
215
+ result = api_instance.query_create(bodyapp)
216
+ p result
217
+ rescue IndexeaClient::ApiError => e
218
+ puts "Exception when calling QueriesApi->query_create: #{e}"
219
+ end
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ Name | Type | Description | Notes
225
+ ------------- | ------------- | ------------- | -------------
226
+ **body** | [**QueryForm**](QueryForm.md)| |
227
+ **app** | **String**| 应用标识 |
228
+
229
+ ### Return type
230
+
231
+ [**QueryBean**](QueryBean.md)
232
+
233
+ ### Authorization
234
+
235
+ [TokenAuth](../README.md#TokenAuth)
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: application/json
240
+ - **Accept**: application/json
241
+
242
+
243
+
244
+ # **query_create_keyword_bindings**
245
+ > KeywordBindingBean query_create_keyword_bindings(bodyqueryapp)
246
+
247
+ 创建新的关键词文档绑定
248
+
249
+ ### Example
250
+ ```ruby
251
+ # load the gem
252
+ require 'indexea_client'
253
+ # setup authorization
254
+ IndexeaClient.configure do |config|
255
+ end
256
+
257
+ api_instance = IndexeaClient::QueriesApi.new
258
+ body = IndexeaClient::KeywordBindingBean.new # KeywordBindingBean |
259
+ query = 56 # Integer | 查询编号
260
+ app = 'app_example' # String | 应用标识
261
+
262
+
263
+ begin
264
+ #创建新的关键词文档绑定
265
+ result = api_instance.query_create_keyword_bindings(bodyqueryapp)
266
+ p result
267
+ rescue IndexeaClient::ApiError => e
268
+ puts "Exception when calling QueriesApi->query_create_keyword_bindings: #{e}"
269
+ end
270
+ ```
271
+
272
+ ### Parameters
273
+
274
+ Name | Type | Description | Notes
275
+ ------------- | ------------- | ------------- | -------------
276
+ **body** | [**KeywordBindingBean**](KeywordBindingBean.md)| |
277
+ **query** | **Integer**| 查询编号 |
278
+ **app** | **String**| 应用标识 |
279
+
280
+ ### Return type
281
+
282
+ [**KeywordBindingBean**](KeywordBindingBean.md)
283
+
284
+ ### Authorization
285
+
286
+ [TokenAuth](../README.md#TokenAuth)
287
+
288
+ ### HTTP request headers
289
+
290
+ - **Content-Type**: application/json
291
+ - **Accept**: application/json
292
+
293
+
294
+
295
+ # **query_create_variable**
296
+ > QueryVariableBean query_create_variable(bodyapp)
297
+
298
+ 创建新的预定义查询变量
299
+
300
+ ### Example
301
+ ```ruby
302
+ # load the gem
303
+ require 'indexea_client'
304
+ # setup authorization
305
+ IndexeaClient.configure do |config|
306
+ end
307
+
308
+ api_instance = IndexeaClient::QueriesApi.new
309
+ body = IndexeaClient::QueryVariableBean.new # QueryVariableBean |
310
+ app = 'app_example' # String | 应用标识
311
+
312
+
313
+ begin
314
+ #创建新的预定义查询变量
315
+ result = api_instance.query_create_variable(bodyapp)
316
+ p result
317
+ rescue IndexeaClient::ApiError => e
318
+ puts "Exception when calling QueriesApi->query_create_variable: #{e}"
319
+ end
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+ Name | Type | Description | Notes
325
+ ------------- | ------------- | ------------- | -------------
326
+ **body** | [**QueryVariableBean**](QueryVariableBean.md)| |
327
+ **app** | **String**| 应用标识 |
328
+
329
+ ### Return type
330
+
331
+ [**QueryVariableBean**](QueryVariableBean.md)
332
+
333
+ ### Authorization
334
+
335
+ [TokenAuth](../README.md#TokenAuth)
336
+
337
+ ### HTTP request headers
338
+
339
+ - **Content-Type**: application/json
340
+ - **Accept**: application/json
341
+
342
+
343
+
344
+ # **query_delete**
345
+ > BOOLEAN query_delete(app, query)
346
+
347
+ 删除搜索
348
+
349
+ ### Example
350
+ ```ruby
351
+ # load the gem
352
+ require 'indexea_client'
353
+ # setup authorization
354
+ IndexeaClient.configure do |config|
355
+ end
356
+
357
+ api_instance = IndexeaClient::QueriesApi.new
358
+ app = 'app_example' # String | 应用标识
359
+ query = 56 # Integer | 查询编号
360
+
361
+
362
+ begin
363
+ #删除搜索
364
+ result = api_instance.query_delete(app, query)
365
+ p result
366
+ rescue IndexeaClient::ApiError => e
367
+ puts "Exception when calling QueriesApi->query_delete: #{e}"
368
+ end
369
+ ```
370
+
371
+ ### Parameters
372
+
373
+ Name | Type | Description | Notes
374
+ ------------- | ------------- | ------------- | -------------
375
+ **app** | **String**| 应用标识 |
376
+ **query** | **Integer**| 查询编号 |
377
+
378
+ ### Return type
379
+
380
+ **BOOLEAN**
381
+
382
+ ### Authorization
383
+
384
+ [TokenAuth](../README.md#TokenAuth)
385
+
386
+ ### HTTP request headers
387
+
388
+ - **Content-Type**: Not defined
389
+ - **Accept**: application/json
390
+
391
+
392
+
393
+ # **query_delete_keyword_bindings**
394
+ > BOOLEAN query_delete_keyword_bindings(app, query, id)
395
+
396
+ 删除关键词文档绑定
397
+
398
+ ### Example
399
+ ```ruby
400
+ # load the gem
401
+ require 'indexea_client'
402
+ # setup authorization
403
+ IndexeaClient.configure do |config|
404
+ end
405
+
406
+ api_instance = IndexeaClient::QueriesApi.new
407
+ app = 'app_example' # String | 应用标识
408
+ query = 56 # Integer | 查询编号
409
+ id = 56 # Integer | 关键词编号
410
+
411
+
412
+ begin
413
+ #删除关键词文档绑定
414
+ result = api_instance.query_delete_keyword_bindings(app, query, id)
415
+ p result
416
+ rescue IndexeaClient::ApiError => e
417
+ puts "Exception when calling QueriesApi->query_delete_keyword_bindings: #{e}"
418
+ end
419
+ ```
420
+
421
+ ### Parameters
422
+
423
+ Name | Type | Description | Notes
424
+ ------------- | ------------- | ------------- | -------------
425
+ **app** | **String**| 应用标识 |
426
+ **query** | **Integer**| 查询编号 |
427
+ **id** | **Integer**| 关键词编号 |
428
+
429
+ ### Return type
430
+
431
+ **BOOLEAN**
432
+
433
+ ### Authorization
434
+
435
+ [TokenAuth](../README.md#TokenAuth)
436
+
437
+ ### HTTP request headers
438
+
439
+ - **Content-Type**: Not defined
440
+ - **Accept**: application/json
441
+
442
+
443
+
444
+ # **query_delete_node_positions**
445
+ > BOOLEAN query_delete_node_positions(app, query)
446
+
447
+ 清除查询条件的节点位置信息
448
+
449
+ ### Example
450
+ ```ruby
451
+ # load the gem
452
+ require 'indexea_client'
453
+ # setup authorization
454
+ IndexeaClient.configure do |config|
455
+ end
456
+
457
+ api_instance = IndexeaClient::QueriesApi.new
458
+ app = 'app_example' # String | 应用标识
459
+ query = 56 # Integer | 查询编号
460
+
461
+
462
+ begin
463
+ #清除查询条件的节点位置信息
464
+ result = api_instance.query_delete_node_positions(app, query)
465
+ p result
466
+ rescue IndexeaClient::ApiError => e
467
+ puts "Exception when calling QueriesApi->query_delete_node_positions: #{e}"
468
+ end
469
+ ```
470
+
471
+ ### Parameters
472
+
473
+ Name | Type | Description | Notes
474
+ ------------- | ------------- | ------------- | -------------
475
+ **app** | **String**| 应用标识 |
476
+ **query** | **Integer**| 查询编号 |
477
+
478
+ ### Return type
479
+
480
+ **BOOLEAN**
481
+
482
+ ### Authorization
483
+
484
+ [TokenAuth](../README.md#TokenAuth)
485
+
486
+ ### HTTP request headers
487
+
488
+ - **Content-Type**: Not defined
489
+ - **Accept**: application/json
490
+
491
+
492
+
493
+ # **query_delete_variable**
494
+ > BOOLEAN query_delete_variable(app, id)
495
+
496
+ 删除预定义查询变量
497
+
498
+ ### Example
499
+ ```ruby
500
+ # load the gem
501
+ require 'indexea_client'
502
+ # setup authorization
503
+ IndexeaClient.configure do |config|
504
+ end
505
+
506
+ api_instance = IndexeaClient::QueriesApi.new
507
+ app = 'app_example' # String | 应用标识
508
+ id = 56 # Integer | 自定义查询变量编号
509
+
510
+
511
+ begin
512
+ #删除预定义查询变量
513
+ result = api_instance.query_delete_variable(app, id)
514
+ p result
515
+ rescue IndexeaClient::ApiError => e
516
+ puts "Exception when calling QueriesApi->query_delete_variable: #{e}"
517
+ end
518
+ ```
519
+
520
+ ### Parameters
521
+
522
+ Name | Type | Description | Notes
523
+ ------------- | ------------- | ------------- | -------------
524
+ **app** | **String**| 应用标识 |
525
+ **id** | **Integer**| 自定义查询变量编号 |
526
+
527
+ ### Return type
528
+
529
+ **BOOLEAN**
530
+
531
+ ### Authorization
532
+
533
+ [TokenAuth](../README.md#TokenAuth)
534
+
535
+ ### HTTP request headers
536
+
537
+ - **Content-Type**: Not defined
538
+ - **Accept**: application/json
539
+
540
+
541
+
542
+ # **query_fields**
543
+ > Array<IndexFieldBean> query_fields(app, query)
544
+
545
+ 获取查询关联的所有索引的字段信息
546
+
547
+ ### Example
548
+ ```ruby
549
+ # load the gem
550
+ require 'indexea_client'
551
+ # setup authorization
552
+ IndexeaClient.configure do |config|
553
+ end
554
+
555
+ api_instance = IndexeaClient::QueriesApi.new
556
+ app = 'app_example' # String | 应用标识
557
+ query = 56 # Integer | 查询编号
558
+
559
+
560
+ begin
561
+ #获取查询关联的所有索引的字段信息
562
+ result = api_instance.query_fields(app, query)
563
+ p result
564
+ rescue IndexeaClient::ApiError => e
565
+ puts "Exception when calling QueriesApi->query_fields: #{e}"
566
+ end
567
+ ```
568
+
569
+ ### Parameters
570
+
571
+ Name | Type | Description | Notes
572
+ ------------- | ------------- | ------------- | -------------
573
+ **app** | **String**| 应用标识 |
574
+ **query** | **Integer**| 查询编号 |
575
+
576
+ ### Return type
577
+
578
+ [**Array<IndexFieldBean>**](IndexFieldBean.md)
579
+
580
+ ### Authorization
581
+
582
+ [TokenAuth](../README.md#TokenAuth)
583
+
584
+ ### HTTP request headers
585
+
586
+ - **Content-Type**: Not defined
587
+ - **Accept**: application/json
588
+
589
+
590
+
591
+ # **query_get**
592
+ > QueryBean query_get(app, query)
593
+
594
+ 获取查询的详情
595
+
596
+ ### Example
597
+ ```ruby
598
+ # load the gem
599
+ require 'indexea_client'
600
+ # setup authorization
601
+ IndexeaClient.configure do |config|
602
+ end
603
+
604
+ api_instance = IndexeaClient::QueriesApi.new
605
+ app = 'app_example' # String | 应用标识
606
+ query = 56 # Integer | 查询编号
607
+
608
+
609
+ begin
610
+ #获取查询的详情
611
+ result = api_instance.query_get(app, query)
612
+ p result
613
+ rescue IndexeaClient::ApiError => e
614
+ puts "Exception when calling QueriesApi->query_get: #{e}"
615
+ end
616
+ ```
617
+
618
+ ### Parameters
619
+
620
+ Name | Type | Description | Notes
621
+ ------------- | ------------- | ------------- | -------------
622
+ **app** | **String**| 应用标识 |
623
+ **query** | **Integer**| 查询编号 |
624
+
625
+ ### Return type
626
+
627
+ [**QueryBean**](QueryBean.md)
628
+
629
+ ### Authorization
630
+
631
+ [TokenAuth](../README.md#TokenAuth)
632
+
633
+ ### HTTP request headers
634
+
635
+ - **Content-Type**: Not defined
636
+ - **Accept**: application/json
637
+
638
+
639
+
640
+ # **query_get_node_positions**
641
+ > Object query_get_node_positions(app, query)
642
+
643
+ 获取查询条件的节点位置信息
644
+
645
+ ### Example
646
+ ```ruby
647
+ # load the gem
648
+ require 'indexea_client'
649
+ # setup authorization
650
+ IndexeaClient.configure do |config|
651
+ end
652
+
653
+ api_instance = IndexeaClient::QueriesApi.new
654
+ app = 'app_example' # String | 应用标识
655
+ query = 56 # Integer | 查询编号
656
+
657
+
658
+ begin
659
+ #获取查询条件的节点位置信息
660
+ result = api_instance.query_get_node_positions(app, query)
661
+ p result
662
+ rescue IndexeaClient::ApiError => e
663
+ puts "Exception when calling QueriesApi->query_get_node_positions: #{e}"
664
+ end
665
+ ```
666
+
667
+ ### Parameters
668
+
669
+ Name | Type | Description | Notes
670
+ ------------- | ------------- | ------------- | -------------
671
+ **app** | **String**| 应用标识 |
672
+ **query** | **Integer**| 查询编号 |
673
+
674
+ ### Return type
675
+
676
+ **Object**
677
+
678
+ ### Authorization
679
+
680
+ [TokenAuth](../README.md#TokenAuth)
681
+
682
+ ### HTTP request headers
683
+
684
+ - **Content-Type**: Not defined
685
+ - **Accept**: application/json
686
+
687
+
688
+
689
+ # **query_get_record**
690
+ > Object query_get_record(app, query, _id)
691
+
692
+ 获取记录的详情
693
+
694
+ ### Example
695
+ ```ruby
696
+ # load the gem
697
+ require 'indexea_client'
698
+ # setup authorization
699
+ IndexeaClient.configure do |config|
700
+ end
701
+
702
+ api_instance = IndexeaClient::QueriesApi.new
703
+ app = 'app_example' # String | 应用标识
704
+ query = 56 # Integer | 查询编号
705
+ _id = '_id_example' # String | 记录 _id 值
706
+
707
+
708
+ begin
709
+ #获取记录的详情
710
+ result = api_instance.query_get_record(app, query, _id)
711
+ p result
712
+ rescue IndexeaClient::ApiError => e
713
+ puts "Exception when calling QueriesApi->query_get_record: #{e}"
714
+ end
715
+ ```
716
+
717
+ ### Parameters
718
+
719
+ Name | Type | Description | Notes
720
+ ------------- | ------------- | ------------- | -------------
721
+ **app** | **String**| 应用标识 |
722
+ **query** | **Integer**| 查询编号 |
723
+ **_id** | **String**| 记录 _id 值 |
724
+
725
+ ### Return type
726
+
727
+ **Object**
728
+
729
+ ### Authorization
730
+
731
+ [TokenAuth](../README.md#TokenAuth)
732
+
733
+ ### HTTP request headers
734
+
735
+ - **Content-Type**: Not defined
736
+ - **Accept**: application/json
737
+
738
+
739
+
740
+ # **query_keyword_bindings**
741
+ > Array<KeywordBindingBean> query_keyword_bindings(app, query)
742
+
743
+ 获取查询的关键词文档绑定列表
744
+
745
+ ### Example
746
+ ```ruby
747
+ # load the gem
748
+ require 'indexea_client'
749
+ # setup authorization
750
+ IndexeaClient.configure do |config|
751
+ end
752
+
753
+ api_instance = IndexeaClient::QueriesApi.new
754
+ app = 'app_example' # String | 应用标识
755
+ query = 56 # Integer | 查询编号
756
+
757
+
758
+ begin
759
+ #获取查询的关键词文档绑定列表
760
+ result = api_instance.query_keyword_bindings(app, query)
761
+ p result
762
+ rescue IndexeaClient::ApiError => e
763
+ puts "Exception when calling QueriesApi->query_keyword_bindings: #{e}"
764
+ end
765
+ ```
766
+
767
+ ### Parameters
768
+
769
+ Name | Type | Description | Notes
770
+ ------------- | ------------- | ------------- | -------------
771
+ **app** | **String**| 应用标识 |
772
+ **query** | **Integer**| 查询编号 |
773
+
774
+ ### Return type
775
+
776
+ [**Array<KeywordBindingBean>**](KeywordBindingBean.md)
777
+
778
+ ### Authorization
779
+
780
+ [TokenAuth](../README.md#TokenAuth)
781
+
782
+ ### HTTP request headers
783
+
784
+ - **Content-Type**: Not defined
785
+ - **Accept**: application/json
786
+
787
+
788
+
789
+ # **query_list**
790
+ > Array<QueryBean> query_list(app, opts)
791
+
792
+ 获取应用下所有索引下的查询列表(按索引进行分组)
793
+
794
+ ### Example
795
+ ```ruby
796
+ # load the gem
797
+ require 'indexea_client'
798
+ # setup authorization
799
+ IndexeaClient.configure do |config|
800
+ end
801
+
802
+ api_instance = IndexeaClient::QueriesApi.new
803
+ app = 'app_example' # String | 应用标识
804
+ opts = {
805
+ index: 56 # Integer | 索引编号
806
+ }
807
+
808
+ begin
809
+ #获取应用下所有索引下的查询列表(按索引进行分组)
810
+ result = api_instance.query_list(app, opts)
811
+ p result
812
+ rescue IndexeaClient::ApiError => e
813
+ puts "Exception when calling QueriesApi->query_list: #{e}"
814
+ end
815
+ ```
816
+
817
+ ### Parameters
818
+
819
+ Name | Type | Description | Notes
820
+ ------------- | ------------- | ------------- | -------------
821
+ **app** | **String**| 应用标识 |
822
+ **index** | **Integer**| 索引编号 | [optional]
823
+
824
+ ### Return type
825
+
826
+ [**Array<QueryBean>**](QueryBean.md)
827
+
828
+ ### Authorization
829
+
830
+ [TokenAuth](../README.md#TokenAuth)
831
+
832
+ ### HTTP request headers
833
+
834
+ - **Content-Type**: Not defined
835
+ - **Accept**: application/json
836
+
837
+
838
+
839
+ # **query_profile**
840
+ > Object query_profile(app, query, opts)
841
+
842
+ 获取搜索诊断信息
843
+
844
+ ### Example
845
+ ```ruby
846
+ # load the gem
847
+ require 'indexea_client'
848
+ # setup authorization
849
+ IndexeaClient.configure do |config|
850
+ end
851
+
852
+ api_instance = IndexeaClient::QueriesApi.new
853
+ app = 'app_example' # String | 应用标识
854
+ query = 56 # Integer | 记录编号
855
+ opts = {
856
+ q: 'q_example' # String | 诊断关键字
857
+ }
858
+
859
+ begin
860
+ #获取搜索诊断信息
861
+ result = api_instance.query_profile(app, query, opts)
862
+ p result
863
+ rescue IndexeaClient::ApiError => e
864
+ puts "Exception when calling QueriesApi->query_profile: #{e}"
865
+ end
866
+ ```
867
+
868
+ ### Parameters
869
+
870
+ Name | Type | Description | Notes
871
+ ------------- | ------------- | ------------- | -------------
872
+ **app** | **String**| 应用标识 |
873
+ **query** | **Integer**| 记录编号 |
874
+ **q** | **String**| 诊断关键字 | [optional]
875
+
876
+ ### Return type
877
+
878
+ **Object**
879
+
880
+ ### Authorization
881
+
882
+ [TokenAuth](../README.md#TokenAuth)
883
+
884
+ ### HTTP request headers
885
+
886
+ - **Content-Type**: Not defined
887
+ - **Accept**: application/json
888
+
889
+
890
+
891
+ # **query_records_of_keyword_binding**
892
+ > Array<Object> query_records_of_keyword_binding(app, id)
893
+
894
+ 获取关键词绑定对应的记录列表
895
+
896
+ ### Example
897
+ ```ruby
898
+ # load the gem
899
+ require 'indexea_client'
900
+ # setup authorization
901
+ IndexeaClient.configure do |config|
902
+ end
903
+
904
+ api_instance = IndexeaClient::QueriesApi.new
905
+ app = 'app_example' # String | 应用标识
906
+ id = 56 # Integer | 关键词绑定编号
907
+
908
+
909
+ begin
910
+ #获取关键词绑定对应的记录列表
911
+ result = api_instance.query_records_of_keyword_binding(app, id)
912
+ p result
913
+ rescue IndexeaClient::ApiError => e
914
+ puts "Exception when calling QueriesApi->query_records_of_keyword_binding: #{e}"
915
+ end
916
+ ```
917
+
918
+ ### Parameters
919
+
920
+ Name | Type | Description | Notes
921
+ ------------- | ------------- | ------------- | -------------
922
+ **app** | **String**| 应用标识 |
923
+ **id** | **Integer**| 关键词绑定编号 |
924
+
925
+ ### Return type
926
+
927
+ **Array<Object>**
928
+
929
+ ### Authorization
930
+
931
+ [TokenAuth](../README.md#TokenAuth)
932
+
933
+ ### HTTP request headers
934
+
935
+ - **Content-Type**: Not defined
936
+ - **Accept**: application/json
937
+
938
+
939
+
940
+ # **query_save_intelligent_mappings**
941
+ > BOOLEAN query_save_intelligent_mappings(app, query, opts)
942
+
943
+ 设置索引智能匹配字段
944
+
945
+ ### Example
946
+ ```ruby
947
+ # load the gem
948
+ require 'indexea_client'
949
+ # setup authorization
950
+ IndexeaClient.configure do |config|
951
+ end
952
+
953
+ api_instance = IndexeaClient::QueriesApi.new
954
+ app = 'app_example' # String | 应用标识
955
+ query = 56 # Integer | 查询编号
956
+ opts = {
957
+ fields: ['fields_example'] # Array<String> | 字段列表
958
+ }
959
+
960
+ begin
961
+ #设置索引智能匹配字段
962
+ result = api_instance.query_save_intelligent_mappings(app, query, opts)
963
+ p result
964
+ rescue IndexeaClient::ApiError => e
965
+ puts "Exception when calling QueriesApi->query_save_intelligent_mappings: #{e}"
966
+ end
967
+ ```
968
+
969
+ ### Parameters
970
+
971
+ Name | Type | Description | Notes
972
+ ------------- | ------------- | ------------- | -------------
973
+ **app** | **String**| 应用标识 |
974
+ **query** | **Integer**| 查询编号 |
975
+ **fields** | [**Array&lt;String&gt;**](String.md)| 字段列表 | [optional]
976
+
977
+ ### Return type
978
+
979
+ **BOOLEAN**
980
+
981
+ ### Authorization
982
+
983
+ [TokenAuth](../README.md#TokenAuth)
984
+
985
+ ### HTTP request headers
986
+
987
+ - **Content-Type**: Not defined
988
+ - **Accept**: application/json
989
+
990
+
991
+
992
+ # **query_save_node_positions**
993
+ > Object query_save_node_positions(bodyqueryapp)
994
+
995
+ 保存查询条件的节点位置信息
996
+
997
+ ### Example
998
+ ```ruby
999
+ # load the gem
1000
+ require 'indexea_client'
1001
+ # setup authorization
1002
+ IndexeaClient.configure do |config|
1003
+ end
1004
+
1005
+ api_instance = IndexeaClient::QueriesApi.new
1006
+ body = nil # Object |
1007
+ query = 56 # Integer | 查询编号
1008
+ app = 'app_example' # String | 应用标识
1009
+
1010
+
1011
+ begin
1012
+ #保存查询条件的节点位置信息
1013
+ result = api_instance.query_save_node_positions(bodyqueryapp)
1014
+ p result
1015
+ rescue IndexeaClient::ApiError => e
1016
+ puts "Exception when calling QueriesApi->query_save_node_positions: #{e}"
1017
+ end
1018
+ ```
1019
+
1020
+ ### Parameters
1021
+
1022
+ Name | Type | Description | Notes
1023
+ ------------- | ------------- | ------------- | -------------
1024
+ **body** | [**Object**](Object.md)| |
1025
+ **query** | **Integer**| 查询编号 |
1026
+ **app** | **String**| 应用标识 |
1027
+
1028
+ ### Return type
1029
+
1030
+ **Object**
1031
+
1032
+ ### Authorization
1033
+
1034
+ [TokenAuth](../README.md#TokenAuth)
1035
+
1036
+ ### HTTP request headers
1037
+
1038
+ - **Content-Type**: application/json
1039
+ - **Accept**: application/json
1040
+
1041
+
1042
+
1043
+ # **query_search**
1044
+ > Object query_search(app, query, from, size, opts)
1045
+
1046
+ 搜索测试
1047
+
1048
+ 该接口主要用于定制查询的测试,必须授权才能访问
1049
+
1050
+ ### Example
1051
+ ```ruby
1052
+ # load the gem
1053
+ require 'indexea_client'
1054
+ # setup authorization
1055
+ IndexeaClient.configure do |config|
1056
+ end
1057
+
1058
+ api_instance = IndexeaClient::QueriesApi.new
1059
+ app = 'app_example' # String | 应用标识
1060
+ query = 56 # Integer | 查询编号
1061
+ from = 0 # Integer | 起始记录
1062
+ size = 10 # Integer | 每页记录数量
1063
+ opts = {
1064
+ q: 'q_example', # String | 查询关键字
1065
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
1066
+ }
1067
+
1068
+ begin
1069
+ #搜索测试
1070
+ result = api_instance.query_search(app, query, from, size, opts)
1071
+ p result
1072
+ rescue IndexeaClient::ApiError => e
1073
+ puts "Exception when calling QueriesApi->query_search: #{e}"
1074
+ end
1075
+ ```
1076
+
1077
+ ### Parameters
1078
+
1079
+ Name | Type | Description | Notes
1080
+ ------------- | ------------- | ------------- | -------------
1081
+ **app** | **String**| 应用标识 |
1082
+ **query** | **Integer**| 查询编号 |
1083
+ **from** | **Integer**| 起始记录 | [default to 0]
1084
+ **size** | **Integer**| 每页记录数量 | [default to 10]
1085
+ **q** | **String**| 查询关键字 | [optional]
1086
+ **params** | [**Hash&lt;String, String&gt;**](String.md)| 聚合参数 | [optional]
1087
+
1088
+ ### Return type
1089
+
1090
+ **Object**
1091
+
1092
+ ### Authorization
1093
+
1094
+ [TokenAuth](../README.md#TokenAuth)
1095
+
1096
+ ### HTTP request headers
1097
+
1098
+ - **Content-Type**: Not defined
1099
+ - **Accept**: application/json
1100
+
1101
+
1102
+
1103
+ # **query_source**
1104
+ > Object query_source(app, query, opts)
1105
+
1106
+ 获取最终查询的源码(JSON)
1107
+
1108
+ ### Example
1109
+ ```ruby
1110
+ # load the gem
1111
+ require 'indexea_client'
1112
+ # setup authorization
1113
+ IndexeaClient.configure do |config|
1114
+ end
1115
+
1116
+ api_instance = IndexeaClient::QueriesApi.new
1117
+ app = 'app_example' # String | 应用标识
1118
+ query = 56 # Integer | 查询编号
1119
+ opts = {
1120
+ q: 'q_example' # String | 搜索关键字
1121
+ }
1122
+
1123
+ begin
1124
+ #获取最终查询的源码(JSON)
1125
+ result = api_instance.query_source(app, query, opts)
1126
+ p result
1127
+ rescue IndexeaClient::ApiError => e
1128
+ puts "Exception when calling QueriesApi->query_source: #{e}"
1129
+ end
1130
+ ```
1131
+
1132
+ ### Parameters
1133
+
1134
+ Name | Type | Description | Notes
1135
+ ------------- | ------------- | ------------- | -------------
1136
+ **app** | **String**| 应用标识 |
1137
+ **query** | **Integer**| 查询编号 |
1138
+ **q** | **String**| 搜索关键字 | [optional]
1139
+
1140
+ ### Return type
1141
+
1142
+ **Object**
1143
+
1144
+ ### Authorization
1145
+
1146
+ [TokenAuth](../README.md#TokenAuth)
1147
+
1148
+ ### HTTP request headers
1149
+
1150
+ - **Content-Type**: Not defined
1151
+ - **Accept**: application/json
1152
+
1153
+
1154
+
1155
+ # **query_suggest**
1156
+ > Array&lt;Object&gt; query_suggest(app, query, q)
1157
+
1158
+ 获取搜索建议列表
1159
+
1160
+ ### Example
1161
+ ```ruby
1162
+ # load the gem
1163
+ require 'indexea_client'
1164
+ # setup authorization
1165
+ IndexeaClient.configure do |config|
1166
+ end
1167
+
1168
+ api_instance = IndexeaClient::QueriesApi.new
1169
+ app = 'app_example' # String | 应用标识
1170
+ query = 56 # Integer | 查询编号
1171
+ q = 'q_example' # String | 搜索关键字
1172
+
1173
+
1174
+ begin
1175
+ #获取搜索建议列表
1176
+ result = api_instance.query_suggest(app, query, q)
1177
+ p result
1178
+ rescue IndexeaClient::ApiError => e
1179
+ puts "Exception when calling QueriesApi->query_suggest: #{e}"
1180
+ end
1181
+ ```
1182
+
1183
+ ### Parameters
1184
+
1185
+ Name | Type | Description | Notes
1186
+ ------------- | ------------- | ------------- | -------------
1187
+ **app** | **String**| 应用标识 |
1188
+ **query** | **Integer**| 查询编号 |
1189
+ **q** | **String**| 搜索关键字 |
1190
+
1191
+ ### Return type
1192
+
1193
+ **Array&lt;Object&gt;**
1194
+
1195
+ ### Authorization
1196
+
1197
+ [TokenAuth](../README.md#TokenAuth)
1198
+
1199
+ ### HTTP request headers
1200
+
1201
+ - **Content-Type**: Not defined
1202
+ - **Accept**: application/json
1203
+
1204
+
1205
+
1206
+ # **query_test_intelligent_mappings**
1207
+ > Array&lt;IntelligentMapping&gt; query_test_intelligent_mappings(app, query, q, opts)
1208
+
1209
+ 测试索引智能匹配字段
1210
+
1211
+ ### Example
1212
+ ```ruby
1213
+ # load the gem
1214
+ require 'indexea_client'
1215
+ # setup authorization
1216
+ IndexeaClient.configure do |config|
1217
+ end
1218
+
1219
+ api_instance = IndexeaClient::QueriesApi.new
1220
+ app = 'app_example' # String | 应用标识
1221
+ query = 56 # Integer | 查询编号
1222
+ q = 'q_example' # String | 搜索内容
1223
+ opts = {
1224
+ fields: ['fields_example'] # Array<String> | 字段列表
1225
+ }
1226
+
1227
+ begin
1228
+ #测试索引智能匹配字段
1229
+ result = api_instance.query_test_intelligent_mappings(app, query, q, opts)
1230
+ p result
1231
+ rescue IndexeaClient::ApiError => e
1232
+ puts "Exception when calling QueriesApi->query_test_intelligent_mappings: #{e}"
1233
+ end
1234
+ ```
1235
+
1236
+ ### Parameters
1237
+
1238
+ Name | Type | Description | Notes
1239
+ ------------- | ------------- | ------------- | -------------
1240
+ **app** | **String**| 应用标识 |
1241
+ **query** | **Integer**| 查询编号 |
1242
+ **q** | **String**| 搜索内容 |
1243
+ **fields** | [**Array&lt;String&gt;**](String.md)| 字段列表 | [optional]
1244
+
1245
+ ### Return type
1246
+
1247
+ [**Array&lt;IntelligentMapping&gt;**](IntelligentMapping.md)
1248
+
1249
+ ### Authorization
1250
+
1251
+ [TokenAuth](../README.md#TokenAuth)
1252
+
1253
+ ### HTTP request headers
1254
+
1255
+ - **Content-Type**: Not defined
1256
+ - **Accept**: application/json
1257
+
1258
+
1259
+
1260
+ # **query_update**
1261
+ > QueryBean query_update(bodyqueryapp)
1262
+
1263
+ 修改查询
1264
+
1265
+ ### Example
1266
+ ```ruby
1267
+ # load the gem
1268
+ require 'indexea_client'
1269
+ # setup authorization
1270
+ IndexeaClient.configure do |config|
1271
+ end
1272
+
1273
+ api_instance = IndexeaClient::QueriesApi.new
1274
+ body = IndexeaClient::QueryForm.new # QueryForm |
1275
+ query = 56 # Integer | 查询编号
1276
+ app = 'app_example' # String | 应用标识
1277
+
1278
+
1279
+ begin
1280
+ #修改查询
1281
+ result = api_instance.query_update(bodyqueryapp)
1282
+ p result
1283
+ rescue IndexeaClient::ApiError => e
1284
+ puts "Exception when calling QueriesApi->query_update: #{e}"
1285
+ end
1286
+ ```
1287
+
1288
+ ### Parameters
1289
+
1290
+ Name | Type | Description | Notes
1291
+ ------------- | ------------- | ------------- | -------------
1292
+ **body** | [**QueryForm**](QueryForm.md)| |
1293
+ **query** | **Integer**| 查询编号 |
1294
+ **app** | **String**| 应用标识 |
1295
+
1296
+ ### Return type
1297
+
1298
+ [**QueryBean**](QueryBean.md)
1299
+
1300
+ ### Authorization
1301
+
1302
+ [TokenAuth](../README.md#TokenAuth)
1303
+
1304
+ ### HTTP request headers
1305
+
1306
+ - **Content-Type**: application/json
1307
+ - **Accept**: application/json
1308
+
1309
+
1310
+
1311
+ # **query_update_keyword_bindings**
1312
+ > KeywordBindingBean query_update_keyword_bindings(bodyqueryapp)
1313
+
1314
+ 修改关键词文档绑定
1315
+
1316
+ ### Example
1317
+ ```ruby
1318
+ # load the gem
1319
+ require 'indexea_client'
1320
+ # setup authorization
1321
+ IndexeaClient.configure do |config|
1322
+ end
1323
+
1324
+ api_instance = IndexeaClient::QueriesApi.new
1325
+ body = IndexeaClient::KeywordBindingBean.new # KeywordBindingBean |
1326
+ query = 56 # Integer | 查询编号
1327
+ app = 'app_example' # String | 应用标识
1328
+
1329
+
1330
+ begin
1331
+ #修改关键词文档绑定
1332
+ result = api_instance.query_update_keyword_bindings(bodyqueryapp)
1333
+ p result
1334
+ rescue IndexeaClient::ApiError => e
1335
+ puts "Exception when calling QueriesApi->query_update_keyword_bindings: #{e}"
1336
+ end
1337
+ ```
1338
+
1339
+ ### Parameters
1340
+
1341
+ Name | Type | Description | Notes
1342
+ ------------- | ------------- | ------------- | -------------
1343
+ **body** | [**KeywordBindingBean**](KeywordBindingBean.md)| |
1344
+ **query** | **Integer**| 查询编号 |
1345
+ **app** | **String**| 应用标识 |
1346
+
1347
+ ### Return type
1348
+
1349
+ [**KeywordBindingBean**](KeywordBindingBean.md)
1350
+
1351
+ ### Authorization
1352
+
1353
+ [TokenAuth](../README.md#TokenAuth)
1354
+
1355
+ ### HTTP request headers
1356
+
1357
+ - **Content-Type**: application/json
1358
+ - **Accept**: application/json
1359
+
1360
+
1361
+
1362
+ # **query_update_settings**
1363
+ > BOOLEAN query_update_settings(app, query, name, value, type)
1364
+
1365
+ 更改查询的设置项
1366
+
1367
+ ### Example
1368
+ ```ruby
1369
+ # load the gem
1370
+ require 'indexea_client'
1371
+ # setup authorization
1372
+ IndexeaClient.configure do |config|
1373
+ end
1374
+
1375
+ api_instance = IndexeaClient::QueriesApi.new
1376
+ app = 'app_example' # String | 应用标识
1377
+ query = 56 # Integer | 记录编号
1378
+ name = 'name_example' # String | 设置项名称
1379
+ value = 'value_example' # String | 设置值
1380
+ type = 'string' # String | 设置项类型
1381
+
1382
+
1383
+ begin
1384
+ #更改查询的设置项
1385
+ result = api_instance.query_update_settings(app, query, name, value, type)
1386
+ p result
1387
+ rescue IndexeaClient::ApiError => e
1388
+ puts "Exception when calling QueriesApi->query_update_settings: #{e}"
1389
+ end
1390
+ ```
1391
+
1392
+ ### Parameters
1393
+
1394
+ Name | Type | Description | Notes
1395
+ ------------- | ------------- | ------------- | -------------
1396
+ **app** | **String**| 应用标识 |
1397
+ **query** | **Integer**| 记录编号 |
1398
+ **name** | **String**| 设置项名称 |
1399
+ **value** | **String**| 设置值 |
1400
+ **type** | **String**| 设置项类型 | [default to string]
1401
+
1402
+ ### Return type
1403
+
1404
+ **BOOLEAN**
1405
+
1406
+ ### Authorization
1407
+
1408
+ [TokenAuth](../README.md#TokenAuth)
1409
+
1410
+ ### HTTP request headers
1411
+
1412
+ - **Content-Type**: Not defined
1413
+ - **Accept**: application/json
1414
+
1415
+
1416
+
1417
+ # **query_update_variable**
1418
+ > QueryVariableBean query_update_variable(bodyidapp)
1419
+
1420
+ 修改预定义查询变量
1421
+
1422
+ ### Example
1423
+ ```ruby
1424
+ # load the gem
1425
+ require 'indexea_client'
1426
+ # setup authorization
1427
+ IndexeaClient.configure do |config|
1428
+ end
1429
+
1430
+ api_instance = IndexeaClient::QueriesApi.new
1431
+ body = IndexeaClient::QueryVariableBean.new # QueryVariableBean |
1432
+ id = 56 # Integer | 自定义查询变量编号
1433
+ app = 'app_example' # String | 应用标识
1434
+
1435
+
1436
+ begin
1437
+ #修改预定义查询变量
1438
+ result = api_instance.query_update_variable(bodyidapp)
1439
+ p result
1440
+ rescue IndexeaClient::ApiError => e
1441
+ puts "Exception when calling QueriesApi->query_update_variable: #{e}"
1442
+ end
1443
+ ```
1444
+
1445
+ ### Parameters
1446
+
1447
+ Name | Type | Description | Notes
1448
+ ------------- | ------------- | ------------- | -------------
1449
+ **body** | [**QueryVariableBean**](QueryVariableBean.md)| |
1450
+ **id** | **Integer**| 自定义查询变量编号 |
1451
+ **app** | **String**| 应用标识 |
1452
+
1453
+ ### Return type
1454
+
1455
+ [**QueryVariableBean**](QueryVariableBean.md)
1456
+
1457
+ ### Authorization
1458
+
1459
+ [TokenAuth](../README.md#TokenAuth)
1460
+
1461
+ ### HTTP request headers
1462
+
1463
+ - **Content-Type**: application/json
1464
+ - **Accept**: application/json
1465
+
1466
+
1467
+
1468
+ # **query_validate**
1469
+ > Object query_validate(app, query)
1470
+
1471
+ 获取搜索验证结果
1472
+
1473
+ ### Example
1474
+ ```ruby
1475
+ # load the gem
1476
+ require 'indexea_client'
1477
+ # setup authorization
1478
+ IndexeaClient.configure do |config|
1479
+ end
1480
+
1481
+ api_instance = IndexeaClient::QueriesApi.new
1482
+ app = 'app_example' # String | 应用标识
1483
+ query = 56 # Integer | 查询编号
1484
+
1485
+
1486
+ begin
1487
+ #获取搜索验证结果
1488
+ result = api_instance.query_validate(app, query)
1489
+ p result
1490
+ rescue IndexeaClient::ApiError => e
1491
+ puts "Exception when calling QueriesApi->query_validate: #{e}"
1492
+ end
1493
+ ```
1494
+
1495
+ ### Parameters
1496
+
1497
+ Name | Type | Description | Notes
1498
+ ------------- | ------------- | ------------- | -------------
1499
+ **app** | **String**| 应用标识 |
1500
+ **query** | **Integer**| 查询编号 |
1501
+
1502
+ ### Return type
1503
+
1504
+ **Object**
1505
+
1506
+ ### Authorization
1507
+
1508
+ [TokenAuth](../README.md#TokenAuth)
1509
+
1510
+ ### HTTP request headers
1511
+
1512
+ - **Content-Type**: Not defined
1513
+ - **Accept**: application/json
1514
+
1515
+
1516
+
1517
+ # **query_validate_aggregation**
1518
+ > Object query_validate_aggregation(bodyqueryapp)
1519
+
1520
+ 验证聚合定义是否正确
1521
+
1522
+ ### Example
1523
+ ```ruby
1524
+ # load the gem
1525
+ require 'indexea_client'
1526
+ # setup authorization
1527
+ IndexeaClient.configure do |config|
1528
+ end
1529
+
1530
+ api_instance = IndexeaClient::QueriesApi.new
1531
+ body = nil # Object |
1532
+ query = 56 # Integer | 查询编号
1533
+ app = 'app_example' # String | 应用标识
1534
+
1535
+
1536
+ begin
1537
+ #验证聚合定义是否正确
1538
+ result = api_instance.query_validate_aggregation(bodyqueryapp)
1539
+ p result
1540
+ rescue IndexeaClient::ApiError => e
1541
+ puts "Exception when calling QueriesApi->query_validate_aggregation: #{e}"
1542
+ end
1543
+ ```
1544
+
1545
+ ### Parameters
1546
+
1547
+ Name | Type | Description | Notes
1548
+ ------------- | ------------- | ------------- | -------------
1549
+ **body** | [**Object**](Object.md)| |
1550
+ **query** | **Integer**| 查询编号 |
1551
+ **app** | **String**| 应用标识 |
1552
+
1553
+ ### Return type
1554
+
1555
+ **Object**
1556
+
1557
+ ### Authorization
1558
+
1559
+ [TokenAuth](../README.md#TokenAuth)
1560
+
1561
+ ### HTTP request headers
1562
+
1563
+ - **Content-Type**: application/json
1564
+ - **Accept**: application/json
1565
+
1566
+
1567
+
1568
+ # **query_validate_query**
1569
+ > Object query_validate_query(bodyqueryapp)
1570
+
1571
+ 验证聚合定义是否正确
1572
+
1573
+ ### Example
1574
+ ```ruby
1575
+ # load the gem
1576
+ require 'indexea_client'
1577
+ # setup authorization
1578
+ IndexeaClient.configure do |config|
1579
+ end
1580
+
1581
+ api_instance = IndexeaClient::QueriesApi.new
1582
+ body = nil # Object |
1583
+ query = 56 # Integer | 查询编号
1584
+ app = 'app_example' # String | 应用标识
1585
+
1586
+
1587
+ begin
1588
+ #验证聚合定义是否正确
1589
+ result = api_instance.query_validate_query(bodyqueryapp)
1590
+ p result
1591
+ rescue IndexeaClient::ApiError => e
1592
+ puts "Exception when calling QueriesApi->query_validate_query: #{e}"
1593
+ end
1594
+ ```
1595
+
1596
+ ### Parameters
1597
+
1598
+ Name | Type | Description | Notes
1599
+ ------------- | ------------- | ------------- | -------------
1600
+ **body** | [**Object**](Object.md)| |
1601
+ **query** | **Integer**| 查询编号 |
1602
+ **app** | **String**| 应用标识 |
1603
+
1604
+ ### Return type
1605
+
1606
+ **Object**
1607
+
1608
+ ### Authorization
1609
+
1610
+ [TokenAuth](../README.md#TokenAuth)
1611
+
1612
+ ### HTTP request headers
1613
+
1614
+ - **Content-Type**: application/json
1615
+ - **Accept**: application/json
1616
+
1617
+
1618
+
1619
+ # **query_validate_script_field**
1620
+ > Object query_validate_script_field(bodyapp, opts)
1621
+
1622
+ 验证脚本字段是否正确
1623
+
1624
+ ### Example
1625
+ ```ruby
1626
+ # load the gem
1627
+ require 'indexea_client'
1628
+ # setup authorization
1629
+ IndexeaClient.configure do |config|
1630
+ end
1631
+
1632
+ api_instance = IndexeaClient::QueriesApi.new
1633
+ body = nil # Object |
1634
+ app = 'app_example' # String | 应用标识
1635
+ opts = {
1636
+ query: 56 # Integer | 查询编号, query 和 index 两个参数传一个即可
1637
+ index: 56 # Integer | 索引编号, query 和 index 两个参数传一个即可
1638
+ }
1639
+
1640
+ begin
1641
+ #验证脚本字段是否正确
1642
+ result = api_instance.query_validate_script_field(bodyapp, opts)
1643
+ p result
1644
+ rescue IndexeaClient::ApiError => e
1645
+ puts "Exception when calling QueriesApi->query_validate_script_field: #{e}"
1646
+ end
1647
+ ```
1648
+
1649
+ ### Parameters
1650
+
1651
+ Name | Type | Description | Notes
1652
+ ------------- | ------------- | ------------- | -------------
1653
+ **body** | [**Object**](Object.md)| |
1654
+ **app** | **String**| 应用标识 |
1655
+ **query** | **Integer**| 查询编号, query 和 index 两个参数传一个即可 | [optional]
1656
+ **index** | **Integer**| 索引编号, query 和 index 两个参数传一个即可 | [optional]
1657
+
1658
+ ### Return type
1659
+
1660
+ **Object**
1661
+
1662
+ ### Authorization
1663
+
1664
+ [TokenAuth](../README.md#TokenAuth)
1665
+
1666
+ ### HTTP request headers
1667
+
1668
+ - **Content-Type**: application/json
1669
+ - **Accept**: application/json
1670
+
1671
+
1672
+
1673
+ # **query_validate_script_score**
1674
+ > Object query_validate_script_score(bodyqueryapp)
1675
+
1676
+ 验证脚本字段是否正确
1677
+
1678
+ ### Example
1679
+ ```ruby
1680
+ # load the gem
1681
+ require 'indexea_client'
1682
+ # setup authorization
1683
+ IndexeaClient.configure do |config|
1684
+ end
1685
+
1686
+ api_instance = IndexeaClient::QueriesApi.new
1687
+ body = nil # Object |
1688
+ query = 56 # Integer | 查询编号
1689
+ app = 'app_example' # String | 应用标识
1690
+
1691
+
1692
+ begin
1693
+ #验证脚本字段是否正确
1694
+ result = api_instance.query_validate_script_score(bodyqueryapp)
1695
+ p result
1696
+ rescue IndexeaClient::ApiError => e
1697
+ puts "Exception when calling QueriesApi->query_validate_script_score: #{e}"
1698
+ end
1699
+ ```
1700
+
1701
+ ### Parameters
1702
+
1703
+ Name | Type | Description | Notes
1704
+ ------------- | ------------- | ------------- | -------------
1705
+ **body** | [**Object**](Object.md)| |
1706
+ **query** | **Integer**| 查询编号 |
1707
+ **app** | **String**| 应用标识 |
1708
+
1709
+ ### Return type
1710
+
1711
+ **Object**
1712
+
1713
+ ### Authorization
1714
+
1715
+ [TokenAuth](../README.md#TokenAuth)
1716
+
1717
+ ### HTTP request headers
1718
+
1719
+ - **Content-Type**: application/json
1720
+ - **Accept**: application/json
1721
+
1722
+
1723
+
1724
+ # **query_validate_suggestion**
1725
+ > Object query_validate_suggestion(bodyqueryapp)
1726
+
1727
+ 验证建议是否正确
1728
+
1729
+ ### Example
1730
+ ```ruby
1731
+ # load the gem
1732
+ require 'indexea_client'
1733
+ # setup authorization
1734
+ IndexeaClient.configure do |config|
1735
+ end
1736
+
1737
+ api_instance = IndexeaClient::QueriesApi.new
1738
+ body = nil # Object |
1739
+ query = 56 # Integer | 查询编号
1740
+ app = 'app_example' # String | 应用标识
1741
+
1742
+
1743
+ begin
1744
+ #验证建议是否正确
1745
+ result = api_instance.query_validate_suggestion(bodyqueryapp)
1746
+ p result
1747
+ rescue IndexeaClient::ApiError => e
1748
+ puts "Exception when calling QueriesApi->query_validate_suggestion: #{e}"
1749
+ end
1750
+ ```
1751
+
1752
+ ### Parameters
1753
+
1754
+ Name | Type | Description | Notes
1755
+ ------------- | ------------- | ------------- | -------------
1756
+ **body** | [**Object**](Object.md)| |
1757
+ **query** | **Integer**| 查询编号 |
1758
+ **app** | **String**| 应用标识 |
1759
+
1760
+ ### Return type
1761
+
1762
+ **Object**
1763
+
1764
+ ### Authorization
1765
+
1766
+ [TokenAuth](../README.md#TokenAuth)
1767
+
1768
+ ### HTTP request headers
1769
+
1770
+ - **Content-Type**: application/json
1771
+ - **Accept**: application/json
1772
+
1773
+
1774
+
1775
+ # **query_variables**
1776
+ > Array&lt;QueryVariableBean&gt; query_variables(app)
1777
+
1778
+ 获取应用的预定义查询变量列表
1779
+
1780
+ ### Example
1781
+ ```ruby
1782
+ # load the gem
1783
+ require 'indexea_client'
1784
+ # setup authorization
1785
+ IndexeaClient.configure do |config|
1786
+ end
1787
+
1788
+ api_instance = IndexeaClient::QueriesApi.new
1789
+ app = 'app_example' # String | 应用标识
1790
+
1791
+
1792
+ begin
1793
+ #获取应用的预定义查询变量列表
1794
+ result = api_instance.query_variables(app)
1795
+ p result
1796
+ rescue IndexeaClient::ApiError => e
1797
+ puts "Exception when calling QueriesApi->query_variables: #{e}"
1798
+ end
1799
+ ```
1800
+
1801
+ ### Parameters
1802
+
1803
+ Name | Type | Description | Notes
1804
+ ------------- | ------------- | ------------- | -------------
1805
+ **app** | **String**| 应用标识 |
1806
+
1807
+ ### Return type
1808
+
1809
+ [**Array&lt;QueryVariableBean&gt;**](QueryVariableBean.md)
1810
+
1811
+ ### Authorization
1812
+
1813
+ [TokenAuth](../README.md#TokenAuth)
1814
+
1815
+ ### HTTP request headers
1816
+
1817
+ - **Content-Type**: Not defined
1818
+ - **Accept**: application/json
1819
+
1820
+
1821
+