• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/search/companysearchcontentbuilder.php
  • Класс: Bitrix\Crm\Search\CompanySearchContentBuilder
  • Вызов: CompanySearchContentBuilder::saveShortIndex
protected function saveShortIndex(int $entityId, SearchMap $map, bool $checkExist = false): \Bitrix\Main\DB\Result
{
	$connection = \Bitrix\Main\Application::getConnection();
	$helper = $connection->getSqlHelper();

	$update = [
		'COMPANY_ID' => $entityId,
		'SEARCH_CONTENT' => $map->getString(),
	];
	$merge = $helper->prepareMerge('b_crm_company_index', ['COMPANY_ID'], $update, $update);

	return $connection->query($merge[0]);
}