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.



1454
1455
1456
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1454

def initialize(client)
  super(client)
end

Instance Method Details

#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse



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

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



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

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



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

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



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

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