• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/search/indexmanager.php
  • Класс: BitrixDiskSearchIndexManager
  • Вызов: IndexManager::allowIndex
private function allowIndex(BaseObject $object)
{
	//here we place configuration by Module (Options). Example, we can deactivate index for big files in Disk.
	if (!Configuration::allowIndexFiles())
	{
		return false;
	}

	$storage = $object->getStorage();
	if (!$storage || !$storage->getProxyType()->canIndexBySearch())
	{
		return false;
	}

	return true;
}