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
data/docs/SearchApi.md ADDED
@@ -0,0 +1,646 @@
1
+ # IndexeaClient::SearchApi
2
+
3
+ All URIs are relative to *https://api.indexea.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**search_click**](SearchApi.md#search_click) | **POST** /search/widget/{widget}/click | 搜索结果点击行为收集
8
+ [**search_histories**](SearchApi.md#search_histories) | **GET** /search/widget/{widget}/histories | 获取当前搜索用户的最新搜索记录
9
+ [**search_logs**](SearchApi.md#search_logs) | **GET** /apps/{app}/logs-searchs | 获取搜索日志
10
+ [**search_query_histories**](SearchApi.md#search_query_histories) | **GET** /search/query/{query}/histories | 获取当前搜索用户的最新搜索记录
11
+ [**search_query_hot_words**](SearchApi.md#search_query_hot_words) | **GET** /search/query/{query}/hotwords | 获取查询相关热词
12
+ [**search_query_repeat_scroll**](SearchApi.md#search_query_repeat_scroll) | **POST** /search/scroll/{query} | 读取滚动搜索结果
13
+ [**search_query_scroll**](SearchApi.md#search_query_scroll) | **GET** /search/scroll/{query} | 基于查询的滚动搜索
14
+ [**search_query_search**](SearchApi.md#search_query_search) | **GET** /search/query/{query} | 基于查询的公开搜索
15
+ [**search_widget_auto_complete**](SearchApi.md#search_widget_auto_complete) | **GET** /search/widget/{widget}/autocomplete | 基于组件的搜索词自动完成
16
+ [**search_widget_hot_words**](SearchApi.md#search_widget_hot_words) | **GET** /search/widget/{widget}/hotwords | 获取组件搜索的相关热词
17
+ [**search_widget_search**](SearchApi.md#search_widget_search) | **GET** /search/widget/{widget} | 基于组件的公开搜索
18
+
19
+ # **search_click**
20
+ > BOOLEAN search_click(widget, action_id, doc_id, opts)
21
+
22
+ 搜索结果点击行为收集
23
+
24
+ 该接口主要用于记录用户对搜索结果的点击行为
25
+
26
+ ### Example
27
+ ```ruby
28
+ # load the gem
29
+ require 'indexea_client'
30
+
31
+ api_instance = IndexeaClient::SearchApi.new
32
+ widget = 'widget_example' # String | 组件唯一标识
33
+ action_id = 'action_id_example' # String | 对应搜索行为编号
34
+ doc_id = 'doc_id_example' # String | 对应索引中的内部记录编号
35
+ opts = {
36
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
37
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
38
+ }
39
+
40
+ begin
41
+ #搜索结果点击行为收集
42
+ result = api_instance.search_click(widget, action_id, doc_id, opts)
43
+ p result
44
+ rescue IndexeaClient::ApiError => e
45
+ puts "Exception when calling SearchApi->search_click: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **widget** | **String**| 组件唯一标识 |
54
+ **action_id** | **String**| 对应搜索行为编号 |
55
+ **doc_id** | **String**| 对应索引中的内部记录编号 |
56
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
57
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
58
+
59
+ ### Return type
60
+
61
+ **BOOLEAN**
62
+
63
+ ### Authorization
64
+
65
+ No authorization required
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: application/json
71
+
72
+
73
+
74
+ # **search_histories**
75
+ > Array<String> search_histories(widget, strategy, query, size, opts)
76
+
77
+ 获取当前搜索用户的最新搜索记录
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'indexea_client'
83
+
84
+ api_instance = IndexeaClient::SearchApi.new
85
+ widget = 'widget_example' # String | 组件唯一标识
86
+ strategy = 'popular' # String | 搜索记录策略
87
+ query = 0 # Integer | 指定关联查询的编号
88
+ size = 10 # Integer | 数量
89
+ opts = {
90
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
91
+ x_token: 'x_token_example' # String | 如果要使用非公开的组件,需要组件作者授权
92
+ }
93
+
94
+ begin
95
+ #获取当前搜索用户的最新搜索记录
96
+ result = api_instance.search_histories(widget, strategy, query, size, opts)
97
+ p result
98
+ rescue IndexeaClient::ApiError => e
99
+ puts "Exception when calling SearchApi->search_histories: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **widget** | **String**| 组件唯一标识 |
108
+ **strategy** | **String**| 搜索记录策略 | [default to popular]
109
+ **query** | **Integer**| 指定关联查询的编号 | [default to 0]
110
+ **size** | **Integer**| 数量 | [default to 10]
111
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
112
+ **x_token** | **String**| 如果要使用非公开的组件,需要组件作者授权 | [optional]
113
+
114
+ ### Return type
115
+
116
+ **Array<String>**
117
+
118
+ ### Authorization
119
+
120
+ No authorization required
121
+
122
+ ### HTTP request headers
123
+
124
+ - **Content-Type**: Not defined
125
+ - **Accept**: application/json
126
+
127
+
128
+
129
+ # **search_logs**
130
+ > Array<QueryActionBean> search_logs(app, opts)
131
+
132
+ 获取搜索日志
133
+
134
+ 该接口主要用于获取搜索明细
135
+
136
+ ### Example
137
+ ```ruby
138
+ # load the gem
139
+ require 'indexea_client'
140
+ # setup authorization
141
+ IndexeaClient.configure do |config|
142
+ end
143
+
144
+ api_instance = IndexeaClient::SearchApi.new
145
+ app = 'app_example' # String | 应用标识
146
+ opts = {
147
+ indices: [56], # Array<Integer> | 只看指定索引
148
+ scope: 'all', # String | 搜索范围
149
+ widget: 0, # Integer | 搜索组件
150
+ query: 0, # Integer | 指定查询
151
+ recomm: 0, # Integer | 推荐组件
152
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
153
+ end_date: Date.parse('2013-10-20'), # Date | 统计结束日期
154
+ from: 0, # Integer | 起始位置
155
+ size: 50 # Integer | 每页记录数量
156
+ }
157
+
158
+ begin
159
+ #获取搜索日志
160
+ result = api_instance.search_logs(app, opts)
161
+ p result
162
+ rescue IndexeaClient::ApiError => e
163
+ puts "Exception when calling SearchApi->search_logs: #{e}"
164
+ end
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **app** | **String**| 应用标识 |
172
+ **indices** | [**Array&lt;Integer&gt;**](Integer.md)| 只看指定索引 | [optional]
173
+ **scope** | **String**| 搜索范围 | [optional] [default to all]
174
+ **widget** | **Integer**| 搜索组件 | [optional] [default to 0]
175
+ **query** | **Integer**| 指定查询 | [optional] [default to 0]
176
+ **recomm** | **Integer**| 推荐组件 | [optional] [default to 0]
177
+ **start_date** | **Date**| 统计起始日期 | [optional]
178
+ **end_date** | **Date**| 统计结束日期 | [optional]
179
+ **from** | **Integer**| 起始位置 | [optional] [default to 0]
180
+ **size** | **Integer**| 每页记录数量 | [optional] [default to 50]
181
+
182
+ ### Return type
183
+
184
+ [**Array&lt;QueryActionBean&gt;**](QueryActionBean.md)
185
+
186
+ ### Authorization
187
+
188
+ [TokenAuth](../README.md#TokenAuth)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: Not defined
193
+ - **Accept**: application/json
194
+
195
+
196
+
197
+ # **search_query_histories**
198
+ > Array&lt;String&gt; search_query_histories(query, strategy, size, opts)
199
+
200
+ 获取当前搜索用户的最新搜索记录
201
+
202
+ ### Example
203
+ ```ruby
204
+ # load the gem
205
+ require 'indexea_client'
206
+
207
+ api_instance = IndexeaClient::SearchApi.new
208
+ query = 'query_example' # String | 查询唯一标识
209
+ strategy = 'popular' # String | 搜索记录策略
210
+ size = 10 # Integer | 数量
211
+ opts = {
212
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
213
+ x_token: 'x_token_example' # String | 如果要使用非公开查询,需要组件作者授权
214
+ }
215
+
216
+ begin
217
+ #获取当前搜索用户的最新搜索记录
218
+ result = api_instance.search_query_histories(query, strategy, size, opts)
219
+ p result
220
+ rescue IndexeaClient::ApiError => e
221
+ puts "Exception when calling SearchApi->search_query_histories: #{e}"
222
+ end
223
+ ```
224
+
225
+ ### Parameters
226
+
227
+ Name | Type | Description | Notes
228
+ ------------- | ------------- | ------------- | -------------
229
+ **query** | **String**| 查询唯一标识 |
230
+ **strategy** | **String**| 搜索记录策略 | [default to popular]
231
+ **size** | **Integer**| 数量 | [default to 10]
232
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
233
+ **x_token** | **String**| 如果要使用非公开查询,需要组件作者授权 | [optional]
234
+
235
+ ### Return type
236
+
237
+ **Array&lt;String&gt;**
238
+
239
+ ### Authorization
240
+
241
+ No authorization required
242
+
243
+ ### HTTP request headers
244
+
245
+ - **Content-Type**: Not defined
246
+ - **Accept**: application/json
247
+
248
+
249
+
250
+ # **search_query_hot_words**
251
+ > Array&lt;SearchWord&gt; search_query_hot_words(query, scope, count, opts)
252
+
253
+ 获取查询相关热词
254
+
255
+ ### Example
256
+ ```ruby
257
+ # load the gem
258
+ require 'indexea_client'
259
+
260
+ api_instance = IndexeaClient::SearchApi.new
261
+ query = 'query_example' # String | 查询标识
262
+ scope = 'all' # String | 时间范围
263
+ count = 10 # Integer | 获取热词数量
264
+ opts = {
265
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
266
+ userid: 'userid_example' # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
267
+ }
268
+
269
+ begin
270
+ #获取查询相关热词
271
+ result = api_instance.search_query_hot_words(query, scope, count, opts)
272
+ p result
273
+ rescue IndexeaClient::ApiError => e
274
+ puts "Exception when calling SearchApi->search_query_hot_words: #{e}"
275
+ end
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+ Name | Type | Description | Notes
281
+ ------------- | ------------- | ------------- | -------------
282
+ **query** | **String**| 查询标识 |
283
+ **scope** | **String**| 时间范围 | [default to all]
284
+ **count** | **Integer**| 获取热词数量 | [default to 10]
285
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
286
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
287
+
288
+ ### Return type
289
+
290
+ [**Array&lt;SearchWord&gt;**](SearchWord.md)
291
+
292
+ ### Authorization
293
+
294
+ No authorization required
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: Not defined
299
+ - **Accept**: application/json
300
+
301
+
302
+
303
+ # **search_query_repeat_scroll**
304
+ > Object search_query_repeat_scroll(query, id, opts)
305
+
306
+ 读取滚动搜索结果
307
+
308
+ 先调用 search.queryScroll 获取 scroll_id 值以及第一批结果记录,然后使用 scroll_id 值调用该接口获取下一批结果记录,请注意该值的有效期是 1 分钟
309
+
310
+ ### Example
311
+ ```ruby
312
+ # load the gem
313
+ require 'indexea_client'
314
+
315
+ api_instance = IndexeaClient::SearchApi.new
316
+ query = 'query_example' # String | 查询标识
317
+ id = 'id_example' # String | scroll_id 值,该值的有效期是 1 分钟
318
+ opts = {
319
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
320
+ userid: 'userid_example' # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
321
+ }
322
+
323
+ begin
324
+ #读取滚动搜索结果
325
+ result = api_instance.search_query_repeat_scroll(query, id, opts)
326
+ p result
327
+ rescue IndexeaClient::ApiError => e
328
+ puts "Exception when calling SearchApi->search_query_repeat_scroll: #{e}"
329
+ end
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+ Name | Type | Description | Notes
335
+ ------------- | ------------- | ------------- | -------------
336
+ **query** | **String**| 查询标识 |
337
+ **id** | **String**| scroll_id 值,该值的有效期是 1 分钟 |
338
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
339
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
340
+
341
+ ### Return type
342
+
343
+ **Object**
344
+
345
+ ### Authorization
346
+
347
+ No authorization required
348
+
349
+ ### HTTP request headers
350
+
351
+ - **Content-Type**: Not defined
352
+ - **Accept**: application/json
353
+
354
+
355
+
356
+ # **search_query_scroll**
357
+ > Object search_query_scroll(query, opts)
358
+
359
+ 基于查询的滚动搜索
360
+
361
+ 用于读取超过 10000 条记录的搜索结果,当需要读取大批量查询结果时请采用此接口获得 scroll_id 值,然后再用 POST 方法 queryRepeatScroll 读取剩余的其他结果,每批次的读取间隔不能超过 1 分钟
362
+
363
+ ### Example
364
+ ```ruby
365
+ # load the gem
366
+ require 'indexea_client'
367
+
368
+ api_instance = IndexeaClient::SearchApi.new
369
+ query = 'query_example' # String | 查询标识
370
+ opts = {
371
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
372
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
373
+ size: 100, # Integer | 单次滚动的记录数
374
+ q: 'q_example', # String | 搜索关键字
375
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
376
+ }
377
+
378
+ begin
379
+ #基于查询的滚动搜索
380
+ result = api_instance.search_query_scroll(query, opts)
381
+ p result
382
+ rescue IndexeaClient::ApiError => e
383
+ puts "Exception when calling SearchApi->search_query_scroll: #{e}"
384
+ end
385
+ ```
386
+
387
+ ### Parameters
388
+
389
+ Name | Type | Description | Notes
390
+ ------------- | ------------- | ------------- | -------------
391
+ **query** | **String**| 查询标识 |
392
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
393
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
394
+ **size** | **Integer**| 单次滚动的记录数 | [optional] [default to 100]
395
+ **q** | **String**| 搜索关键字 | [optional]
396
+ **params** | [**Hash&lt;String, String&gt;**](String.md)| 聚合参数 | [optional]
397
+
398
+ ### Return type
399
+
400
+ **Object**
401
+
402
+ ### Authorization
403
+
404
+ No authorization required
405
+
406
+ ### HTTP request headers
407
+
408
+ - **Content-Type**: Not defined
409
+ - **Accept**: application/json
410
+
411
+
412
+
413
+ # **search_query_search**
414
+ > Object search_query_search(query, from, size, opts)
415
+
416
+ 基于查询的公开搜索
417
+
418
+ 该接口主要用于公开搜索,如果查询是公开的就不需要授权
419
+
420
+ ### Example
421
+ ```ruby
422
+ # load the gem
423
+ require 'indexea_client'
424
+
425
+ api_instance = IndexeaClient::SearchApi.new
426
+ query = 'query_example' # String | 查询标识
427
+ from = 0 # Integer | 起始记录
428
+ size = 20 # Integer | 每页记录数量
429
+ opts = {
430
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
431
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
432
+ q: 'q_example', # String | 搜索关键字
433
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
434
+ }
435
+
436
+ begin
437
+ #基于查询的公开搜索
438
+ result = api_instance.search_query_search(query, from, size, opts)
439
+ p result
440
+ rescue IndexeaClient::ApiError => e
441
+ puts "Exception when calling SearchApi->search_query_search: #{e}"
442
+ end
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+ Name | Type | Description | Notes
448
+ ------------- | ------------- | ------------- | -------------
449
+ **query** | **String**| 查询标识 |
450
+ **from** | **Integer**| 起始记录 | [default to 0]
451
+ **size** | **Integer**| 每页记录数量 | [default to 20]
452
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
453
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
454
+ **q** | **String**| 搜索关键字 | [optional]
455
+ **params** | [**Hash&lt;String, String&gt;**](String.md)| 聚合参数 | [optional]
456
+
457
+ ### Return type
458
+
459
+ **Object**
460
+
461
+ ### Authorization
462
+
463
+ No authorization required
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: application/json
469
+
470
+
471
+
472
+ # **search_widget_auto_complete**
473
+ > Array&lt;AutoCompleteItem&gt; search_widget_auto_complete(widget, query, q, size, opts)
474
+
475
+ 基于组件的搜索词自动完成
476
+
477
+ 该接口主要为搜索输入框提供自动完成的功能
478
+
479
+ ### Example
480
+ ```ruby
481
+ # load the gem
482
+ require 'indexea_client'
483
+
484
+ api_instance = IndexeaClient::SearchApi.new
485
+ widget = 'widget_example' # String | 组件唯一标识
486
+ query = 0 # Integer | 查询编号
487
+ q = 'q_example' # String | 搜索关键字
488
+ size = 10 # Integer | 数量
489
+ opts = {
490
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
491
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
492
+ }
493
+
494
+ begin
495
+ #基于组件的搜索词自动完成
496
+ result = api_instance.search_widget_auto_complete(widget, query, q, size, opts)
497
+ p result
498
+ rescue IndexeaClient::ApiError => e
499
+ puts "Exception when calling SearchApi->search_widget_auto_complete: #{e}"
500
+ end
501
+ ```
502
+
503
+ ### Parameters
504
+
505
+ Name | Type | Description | Notes
506
+ ------------- | ------------- | ------------- | -------------
507
+ **widget** | **String**| 组件唯一标识 |
508
+ **query** | **Integer**| 查询编号 | [default to 0]
509
+ **q** | **String**| 搜索关键字 |
510
+ **size** | **Integer**| 数量 | [default to 10]
511
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
512
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
513
+
514
+ ### Return type
515
+
516
+ [**Array&lt;AutoCompleteItem&gt;**](AutoCompleteItem.md)
517
+
518
+ ### Authorization
519
+
520
+ No authorization required
521
+
522
+ ### HTTP request headers
523
+
524
+ - **Content-Type**: Not defined
525
+ - **Accept**: application/json
526
+
527
+
528
+
529
+ # **search_widget_hot_words**
530
+ > Array&lt;SearchWord&gt; search_widget_hot_words(widget, opts)
531
+
532
+ 获取组件搜索的相关热词
533
+
534
+ ### Example
535
+ ```ruby
536
+ # load the gem
537
+ require 'indexea_client'
538
+
539
+ api_instance = IndexeaClient::SearchApi.new
540
+ widget = 'widget_example' # String | 组件唯一标识
541
+ opts = {
542
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
543
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
544
+ query: 56, # Integer | 查询编号
545
+ scope: 'scope_example', # String | 时间范围
546
+ count: 10 # Integer | 获取热词数量
547
+ }
548
+
549
+ begin
550
+ #获取组件搜索的相关热词
551
+ result = api_instance.search_widget_hot_words(widget, opts)
552
+ p result
553
+ rescue IndexeaClient::ApiError => e
554
+ puts "Exception when calling SearchApi->search_widget_hot_words: #{e}"
555
+ end
556
+ ```
557
+
558
+ ### Parameters
559
+
560
+ Name | Type | Description | Notes
561
+ ------------- | ------------- | ------------- | -------------
562
+ **widget** | **String**| 组件唯一标识 |
563
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
564
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
565
+ **query** | **Integer**| 查询编号 | [optional]
566
+ **scope** | **String**| 时间范围 | [optional]
567
+ **count** | **Integer**| 获取热词数量 | [optional] [default to 10]
568
+
569
+ ### Return type
570
+
571
+ [**Array&lt;SearchWord&gt;**](SearchWord.md)
572
+
573
+ ### Authorization
574
+
575
+ No authorization required
576
+
577
+ ### HTTP request headers
578
+
579
+ - **Content-Type**: Not defined
580
+ - **Accept**: application/json
581
+
582
+
583
+
584
+ # **search_widget_search**
585
+ > Object search_widget_search(widget, query, from, size, opts)
586
+
587
+ 基于组件的公开搜索
588
+
589
+ 该接口主要为UI组件提供公开搜索
590
+
591
+ ### Example
592
+ ```ruby
593
+ # load the gem
594
+ require 'indexea_client'
595
+
596
+ api_instance = IndexeaClient::SearchApi.new
597
+ widget = 'widget_example' # String | 组件唯一标识
598
+ query = 56 # Integer | 查询编号
599
+ from = 0 # Integer | 起始记录
600
+ size = -1 # Integer | 每页记录数量, 如果值小于0则使用预设值的记录数
601
+ opts = {
602
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
603
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
604
+ original: 'original_example', # String | 搜索动作的延续,在 Web 组件中一边输入即时搜索时,使用的是同一个 original,original 值等于第一个搜索动作产生结果中的 action 值
605
+ q: 'q_example', # String | 搜索关键字
606
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
607
+ }
608
+
609
+ begin
610
+ #基于组件的公开搜索
611
+ result = api_instance.search_widget_search(widget, query, from, size, opts)
612
+ p result
613
+ rescue IndexeaClient::ApiError => e
614
+ puts "Exception when calling SearchApi->search_widget_search: #{e}"
615
+ end
616
+ ```
617
+
618
+ ### Parameters
619
+
620
+ Name | Type | Description | Notes
621
+ ------------- | ------------- | ------------- | -------------
622
+ **widget** | **String**| 组件唯一标识 |
623
+ **query** | **Integer**| 查询编号 |
624
+ **from** | **Integer**| 起始记录 | [default to 0]
625
+ **size** | **Integer**| 每页记录数量, 如果值小于0则使用预设值的记录数 | [default to -1]
626
+ **userid** | **String**| 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64 | [optional]
627
+ **x_token** | **String**| 如果要使用非发布的组件,需要组件作者授权 | [optional]
628
+ **original** | **String**| 搜索动作的延续,在 Web 组件中一边输入即时搜索时,使用的是同一个 original,original 值等于第一个搜索动作产生结果中的 action 值 | [optional]
629
+ **q** | **String**| 搜索关键字 | [optional]
630
+ **params** | [**Hash&lt;String, String&gt;**](String.md)| 聚合参数 | [optional]
631
+
632
+ ### Return type
633
+
634
+ **Object**
635
+
636
+ ### Authorization
637
+
638
+ No authorization required
639
+
640
+ ### HTTP request headers
641
+
642
+ - **Content-Type**: Not defined
643
+ - **Accept**: application/json
644
+
645
+
646
+
@@ -0,0 +1,11 @@
1
+ # IndexeaClient::SearchEstimateResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total_purchase_searchs** | **Integer** | | [optional]
7
+ **last_purchase_searchs** | **Integer** | | [optional]
8
+ **avail_searchs** | **Integer** | | [optional]
9
+ **average_searchs** | **Integer** | | [optional]
10
+ **total_searchs** | **Integer** | | [optional]
11
+
@@ -0,0 +1,8 @@
1
+ # IndexeaClient::SearchWord
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **q** | **String** | 搜索词 | [optional]
7
+ **count** | **Integer** | 该词搜索次数 | [optional]
8
+
@@ -0,0 +1,14 @@
1
+ # IndexeaClient::StatIndexBean
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **app** | **Integer** | | [optional]
7
+ **index** | **Integer** | | [optional]
8
+ **date** | **Date** | | [optional]
9
+ **storage** | **Integer** | | [optional]
10
+ **searchs** | **Integer** | | [optional]
11
+ **errors** | **Integer** | | [optional]
12
+ **records** | **Integer** | | [optional]
13
+ **avg_time** | **String** | | [optional]
14
+