Class: Kaltura::KalturaESearchService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaESearchService
- Defined in:
- lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#initialize(client) ⇒ KalturaESearchService
constructor
A new instance of KalturaESearchService.
- #search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse
- #search_entry(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchEntryResponse
- #search_group(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchGroupResponse
- #search_user(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchUserResponse
Constructor Details
#initialize(client) ⇒ KalturaESearchService
Returns a new instance of KalturaESearchService.
1277 1278 1279 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1277 def initialize(client) super(client) end |
Instance Method Details
#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse
1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1282 def search_category(search_params, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'searchParams', search_params) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('elasticsearch_esearch', 'searchCategory', 'KalturaESearchCategoryResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#search_entry(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchEntryResponse
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1294 def search_entry(search_params, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'searchParams', search_params) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('elasticsearch_esearch', 'searchEntry', 'KalturaESearchEntryResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#search_group(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchGroupResponse
1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1306 def search_group(search_params, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'searchParams', search_params) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('elasticsearch_esearch', 'searchGroup', 'KalturaESearchGroupResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#search_user(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchUserResponse
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1318 def search_user(search_params, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'searchParams', search_params) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('elasticsearch_esearch', 'searchUser', 'KalturaESearchUserResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |