class Kaltura::KalturaTagService

Search object tags

Public Class Methods

new(client) click to toggle source
Calls superclass method Kaltura::KalturaServiceBase::new
# File lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb, line 159
def initialize(client)
        super(client)
end

Public Instance Methods

delete_pending() click to toggle source

Action goes over all tags with instanceCount==0 and checks whether they need to be removed from the DB. Returns number of removed tags. @return [int]

# File lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb, line 165
def delete_pending()
        kparams = {}
        client.queue_service_action_call('tagsearch_tag', 'deletePending', 'int', kparams)
        if (client.is_multirequest)
                return nil
        end
        return client.do_queue()
end
index_category_entry_tags(category_id, pc_to_decrement, pc_to_increment) click to toggle source

@return []

# File lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb, line 175
def index_category_entry_tags(category_id, pc_to_decrement, pc_to_increment)
        kparams = {}
        client.add_param(kparams, 'categoryId', category_id)
        client.add_param(kparams, 'pcToDecrement', pc_to_decrement)
        client.add_param(kparams, 'pcToIncrement', pc_to_increment)
        client.queue_service_action_call('tagsearch_tag', 'indexCategoryEntryTags', '', kparams)
        if (client.is_multirequest)
                return nil
        end
        return client.do_queue()
end