Adds new field to collection. When field already exists, it will be updated (merged with existing one).
When adding content field with it's value multiple times, the value is appended to existing content.
Namespace: CMS.SearchAssembly: CMS.Search (in CMS.Search.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- field
- Type: CMS.DataEngine ISearchField
Field to add
Return Value
Type: ISearchFieldNewly added or existing field
Exceptions
Exception | Condition |
---|---|
System InvalidOperationException | When StoreValues is true and we try to add already existing field but with different value. |
See Also