• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/search/searchcontentbuilder.php
  • Класс: Bitrix\Crm\Search\SearchContentBuilder
  • Вызов: SearchContentBuilder::build
public function build($entityID, array $options = null)
{
	$fields = $this->prepareEntityFields($entityID);
	if(is_array($fields))
	{
		if (!isset($options['onlyShortIndex']) || !$options['onlyShortIndex'])
		{
			$this->save($entityID, $this->prepareSearchMap($fields, $options));
		}

		$options['isShortIndex'] = true;
		$this->saveShortIndex(
			(int)$entityID,
			$this->prepareSearchMap($fields, $options),
			($options['checkExist'] ?? false)
		);
	}
}