Поддержка серверов

SEARCH: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

События модуля search

СобытиеВызывается
OnEpilogCSearchStatistic::IsActive
OnSearchPrepareFilterCSearch::__PrepareFilter
OnSearchGetURLCSearchTitle::Fetch
OnReindexCSearch::ReindexModule
OnSearchCSearch::Search
OnBeforeFullReindexClearCSearch::ReIndexAll
BeforeIndexCSearch::Index
OnBeforeIndexDeleteCSearch::DeleteIndex
OnBeforeIndexUpdateCSearch::Index
OnAfterIndexAddCSearch::Index
OnSearchGetFileContentCSearch::ReindexFile
OnSearchCheckPermissionsCSearchUser::CheckCurrentUserGroups

Константы модуля search

КонстантаПроверяется
SITE_IDCSearchStatistic::OnEpilog
BX_DISABLE_INDEX_PAGECSiteMap::Fetch
search_range_by_sum_tfCSearch::GetFreqStatistics
BX_UTFCSearchTitle::Fetch

Список функций и методов модуля search

Метод
GenerateUniqId($sName)
CSearchStatistic::__construct($phrase = "", $tags = "")
CSearchStatistic::PhraseStat($result_count = 0, $page_num = 0)
CSearchStatistic::GetList($arOrder = false, $arFilter = false, $arSelect = false, $bGroup = false)
CSearchStatistic::CleanUpAgent()
CSearchStatistic::IsActive()
CSearchStatistic::SetActive($bActive = false)
CSearchStatistic::GetCurrentURL()
CSearchStatistic::OnEpilog()
CSearchTags::GetList($arSelect = array(), $arFilter = array(), $arOrder = array(), $limit = 100)
CSearchTags::CleanCache($arTags = "", $content_id = false)
CSiteMap::Create($site_id, $max_execution_time, $NS, $arOptions = array())
CSiteMap::Fetch()
CSiteMap::URLEncode($str, $charset)
CSiteMap::LocationEncode($str)
CSiteMap::TimeEncode($iTime)
CSiteMap::GetURLs($site_id, $ID, $limit = 0)
CSearchParameters::ConvertParamsToFilter($arParams, $strFilterParamName)
CSearchParameters::GetFilterDropDown($bFilter = false)
CSearchParameters::GetModulesList()
CSearchParameters::AddFilterParams(&$arComponentParameters, $arCurrentValues, $name, $parent, $MULTIPLE = "Y")
CSearchParameters::_main($arParam)
CSearchParameters::_forum($arParam)
CSearchParameters::_iblock($arParam, $strFILTER)
CSearchParameters::_blog($arParam)
CSearchParameters::_socialnetwork($arParam)
CSearchParameters::_socialnetwork_user($arParam)
CSearchCustomRank::GetList($aSort = array(), $aFilter = array())
CSearchCustomRank::GetByID($ID)
CSearchCustomRank::Delete($ID)
CSearchCustomRank::CheckFields($arFields)
CSearchCustomRank::Add($arFields)
CSearchCustomRank::Update($ID, $arFields)
CSearchCustomRank::StartUpdate()
CSearchCustomRank::NextUpdate()
CSearchCustomRank::__GetParam($lang, $site_id, $module_id = false, $param1 = false, $param2 = false, $item_id = false)
CSearchCustomRank::ModulesList()
CSearchCustomRank::ModulesSelectBox($sFieldName, $sValue, $sDefaultValue = "", $sFuncName = "", $field = "class=\"typeselect\"")
CSearch::__construct($strQuery = false, $SITE_ID = false, $MODULE_ID = false, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $aSort = array(), $aParamsEx = array(), $bTagsCloud = false)
CSearch::CSearch($strQuery = false, $LID = false, $MODULE_ID = false, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $aSort = array(), $aParamsEx = array(), $bTagsCloud = false)
CSearch::Search($arParams, $aSort = array(), $aParamsEx = array(), $bTagsCloud = false)
CSearch::SetOptions($arOptions)
CSearch::SetOffset($offset)
CSearch::SetLimit($limit)
CSearch::GetFilterMD5()
CSearch::chr($a)
CSearch::GetFreqStatistics($lang_id, $arStem, $site_id = "")
CSearch::Repl($strCond, $strType, $strWh)
CSearch::PrepareSearchResult($str)
CSearch::NavStart($nPageSize = 0, $bShowAll = true, $iNumPage = false)
CSearch::Fetch()
CSearch::CheckPath($path)
CSearch::GetGroupCached()
CSearch::QueryMnogoSearch(&$xml)
CSearch::ReIndexAll($bFull = false, $max_execution_time = 0, $NS = Array(), $clear_suggest = false)
CSearch::ReindexModule($MODULE_ID, $bFull = false)
CSearch::GetIndex($MODULE_ID, $ITEM_ID)
CSearch::Index($MODULE_ID, $ITEM_ID, $arFields, $bOverWrite = false, $SEARCH_SESS_ID = "")
CSearch::KillEntities($str)
CSearch::ReindexFile($path, $SEARCH_SESS_ID = "")
CSearch::RecurseIndex($path = Array(), $max_execution_time = 0, &$NS)
CSearch::RemovePHP($str)
CSearch::KillTags($str)
CSearch::OnChangeFile($path, $site)
CSearch::OnGroupDelete($ID)
CSearch::__PrepareFilter($arFilter, &$bIncSites, $strSearchContentAlias = "sc.")
CSearch::__PrepareSort($aSort = array(), $strSearchContentAlias = "sc.", $bTagsCloud = false)
CSearch::Add($arFields)
CSearch::OnChangeFilePermissions($path, $permission = array(), $old_permission = array(), $arGroups = false)
CSearch::SetContentItemGroups($index_id, $arGroups)
CSearch::CheckPermissions($FIELD = "sc.ID")
CSearch::SetContentItemParams($index_id, $arParams)
CSearch::GetContentItemParams($index_id, $param_name = false)
CSearch::stddev($arValues)
CSearch::normdev($words_count)
CSearch::DeleteOld($SESS_ID, $MODULE_ID = "", $SITE_ID = "")
CSearch::DeleteForReindex($MODULE_ID)
CSearch::DeleteIndex($MODULE_ID, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $SITE_ID = false)
CSearch::Update($ID, $arFields)
CSearch::UpdateSite($ID, $arSITE_ID)
CSearch::ChangeIndex($MODULE_ID, $arFields, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $SITE_ID = false)
CSearch::ChangeSite($MODULE_ID, $arSite, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $SITE_ID = false)
CSearch::ChangePermission($MODULE_ID, $arGroups, $ITEM_ID = false, $PARAM1 = false, $PARAM2 = false, $SITE_ID = false, $PARAMS = false)
CSearchSQLHelper::__construct($strSearchContentAlias)
CSearchSQLHelper::_CallbackURL($field_name, $operation, $field_value)
CSearchSQLHelper::_CallbackPARAMS($field_name, $operation, $field_value)
CSearchQuery::__construct($default_query_type = "and", $rus_bool_lang = "yes", $m_casematch = 0, $site_id = "")
CSearchQuery::GetQueryString($fields, $query, $bTagsSearch = false, $bUseStemming = true, $bErrorOnEmptyStem = false)
CSearchQuery::CutKav($query)
CSearchQuery::ParseQ($q)
CSearchQuery::ParseStr($qwe)
CSearchQuery::StemWord($w)
CSearchQuery::StemQuery($q, $lang = "en")
CSearchQuery::PrepareQuery($q)
CSearchCallback::Index($arFields)
CSearchItem::GetList($arOrder = array(), $arFilter = array(), $arSelect = array())
CSearchItem::Fetch()
CSearchFullText::getInstance()
CSearchFullText::connect($connectionString)
CSearchFullText::truncate()
CSearchFullText::deleteById($ID)
CSearchFullText::replace($ID, $arFields)
CSearchFullText::update($ID, $arFields)
CSearchFullText::search($arParams, $aSort, $aParamsEx, $bTagsCloud)
CSearchFullText::searchTitle($phrase = "", $arPhrase = array(), $nTopCount = 5, $arParams = array(), $bNotFilter = false, $order = "")
CSearchFullText::getErrorText()
CSearchFullText::getErrorNumber()
CSearchFullText::getRowFormatter()
CSearchFormatter::format($r)
CSearchUser::__construct($user_id)
CSearchUser::OnAfterUserUpdate(&$arFields)
CSearchUser::DeleteByUserID($USER_ID)
CSearchUser::CheckCurrentUserGroups()
CSearchUser::IsGroupsExists()
CSearchUser::DeleteGroups()
CSearchUser::AddGroups($arGroups)
CSearchUser::SetGroups($arGroups)
CSearchTitle::__construct()
CSearchTitle::Search($phrase = "", $nTopCount = 5, $arParams = array(), $bNotFilter = false, $order = "")
CSearchTitle::getRankFunction($phrase)
CSearchTitle::setMinWordLength($minLength)
CSearchTitle::Fetch()
CSearchTitle::MakeFilterUrl($prefix, $arFilter)
CSearchTitle::searchTitle($phrase = "", $nTopCount = 5, $arParams = array(), $bNotFilter = false, $order = "")
CSearch::DBNavStart()
CSearch::MakeSQL($query, $strSqlWhere, $strSort, $bIncSites, $bStem)
CSearch::tagsMakeSQL($query, $strSqlWhere, $strSort, $bIncSites, $bStem, $limit = 100)
CSearch::ReindexLock()
CSearch::OnLangDelete($lang)
CSearch::FormatDateString($strField)
CSearch::FormatLimit($strSql, $limit)
CSearch::CleanFreqCache($ID)
CSearch::IndexTitle($arLID, $ID, $sTitle)
CSearch::RegisterStem($stem)
CSearch::StemIndex($arLID, $ID, $sContent)
CSearch::TagsIndex($arLID, $ID, $sContent)
CSearchQuery::BuildWhereClause($word)
CSearchSuggest::__construct($strFilterMD5 = "", $phrase = "")
CSearchSuggest::CSearchSuggest($strFilterMD5 = "", $phrase = "")
CSearchSuggest::SetResultCount($result_count)
CSearchSuggest::GetList($nTopCount, $site_id = null)
CSearchSuggest::CleanUpAgent()
CSearchTitle::getSqlOrder($bOrderByRank)
search::search()
search::InstallDB($arParams = array())
search::UnInstallDB($arParams = array())
search::InstallEvents()
search::UnInstallEvents()
search::InstallFiles($arParams = array())
search::UnInstallFiles()
search::DoInstall()
search::DoUninstall()
search::OnGetTableList()
search::OnGetTableSchema()