SearchDocumentAdd Method (String, Object, Boolean, Boolean) |
Adds new field data to the search document.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax public void Add(
string name,
Object value,
bool store,
bool tokenize
)
Parameters
- name
- Type: SystemString
Name of field. - value
- Type: SystemObject
Field data. - store
- Type: SystemBoolean
Indicates whether value should be stored in a retrievable representation. Considered only if index does not accept this information upon index definition. - tokenize
- Type: SystemBoolean
Indicates whether value should be tokenized. Considered only if index does not accept this information upon index definition.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when filed of given name is already present in the document. |
See Also