Click or drag to resize
SearchFields Class
Search fields collection and field constants
Inheritance Hierarchy
SystemObject
  CMS.SearchSearchFields

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 13.0.131
Syntax
C#
public class SearchFields : ISearchFields

The SearchFields type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyItems
Search fields
Public propertyStoreValues
Indicates if field values will be retrieved and stored in collection.
Top
Methods
  NameDescription
Public methodAdd
Adds a new field to the collection. If the field already exists, it is updated (merged with existing one). When adding a content field and its value multiple times, the value is appended to the existing content field.
Protected methodAddInternal
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.
Public methodGet
Returns requested field. Null when field doesn't exist.
Protected methodInsertNewField
Inserts new search field into collection
Public methodPrepareContentValue
Prepares value to add to content field.
Protected methodUpdateExistingField
Updates existing search field in collection
Top
Extension Methods
  NameDescription
Public Extension MethodAddContentField
Appends search field value into designated content field if IsContentField(ISearchIndexInfo, SearchSettingsInfo) is true.
(Defined by SearchFieldsExtensions.)
Public Extension MethodAddIndexField
Inserts index field into search fields collection if IsIndexField(ISearchIndexInfo, SearchSettingsInfo) is true.
(Defined by SearchFieldsExtensions.)
Public Extension MethodAddSystemFields
Adds system search fields to searchFields.
(Defined by SearchFieldsExtensions.)
Public Extension MethodAddToContentField
Appends data to CONTENT field. Field is created if it's not already present.
(Defined by SearchFieldsExtensions.)
Public Extension MethodEnsureContentField
Ensures CONTENT field in collection. Field is created if it's not already present.
(Defined by SearchFieldsExtensions.)
Top
See Also