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.
1461 1462 1463 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1461 def initialize(client) super(client) end |
Instance Method Details
#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1466 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
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1478 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
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1490 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
1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 |
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1502 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 |