Class: Kaltura::KalturaESearchService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaESearchService

Returns a new instance of KalturaESearchService.



1456
1457
1458
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1456

def initialize(client)
	super(client)
end

Instance Method Details

#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse



1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1461

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



1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1473

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



1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1485

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



1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1497

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