Frontend\Modules\Search\Engine\Model::statusIndex PHP Method

statusIndex() public static method

Deactivate an index (no longer has to be searched)
public static statusIndex ( string $module, array $otherIds, boolean $active = true )
$module string The module we're deleting an item from.
$otherIds array An array of other_id's for this module.
$active boolean Set the index to active?
    public static function statusIndex($module, array $otherIds, $active = true)
    {
        // redefine
        $active = $active && $active !== 'N' ? 'Y' : 'N';
        // deactivate!
        if ($otherIds) {
            FrontendModel::getContainer()->get('database')->update('search_index', array('active' => $active), 'module = ? AND other_id IN (' . implode(',', $otherIds) . ')', array((string) $module));
        }
    }