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.
1457 1458 1459 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1457 def initialize(client) super(client) end |
Instance Method Details
#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse
1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1462 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
1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1474 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
1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1486 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
1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1498 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 |