Documentation

StartUpdate

CDBResult
CSearchCustomRank::StartUpdate(
);

Preparation to apply changes in the rules. Non-static method.

This method starts the procedure of applying sorting rules on the search index. Rules must be applied every time when they are updated (CSearchCustomRank::Add, CSearchCustomRank::Update and CSearchCustomRank::Delete). This procedure is not required when indexing or re-indexing the data, because the sorting rules are taken into account during the process of building the search index.

Effectively, this method resets all weighting factors. And to actually apply the rules, you must use the incremental CSearchCustomRank::NextUpdate method.

Method parameters

No parameters.

Returned values

CDBResult is returned on success. Otherwise returns false.

See Also



© «Bitrix24», 2001-2024
Up