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.



1430
1431
1432
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1430

def initialize(client)
	super(client)
end

Instance Method Details

#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse



1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1435

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



1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1447

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



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

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



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

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