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.



1438
1439
1440
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1438

def initialize(client)
  super(client)
end

Instance Method Details

#search_category(search_params, pager = KalturaNotImplemented) ⇒ KalturaESearchCategoryResponse



1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1443

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



1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1455

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



1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1467

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



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 1479

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