Add
int
CSearchCustomRank::Add( array arFields );
The method adds a new rule. Non-static method.
After all required rules are deleted, re-indexing must be done via the CSearchCustomRank::StartUpdates and CSearchCustomRank::NextUpdate methods.
Method parameters
Parameter | Description |
---|---|
arFields | Array with the values of the sorting rule object fields. |
Returned values
The ID of a new rule is returned on success. Otherwise, returns false.
See Also
© «Bitrix24», 2001-2024