SearchHelperAddGeneralField Method |
Adds a general field do the search document.
Namespace: CMS.SearchAssembly: CMS.Search (in CMS.Search.dll) Version: 9.0.0
Syntaxpublic static void AddGeneralField(
ISearchDocument document,
string name,
Object value,
bool store,
bool tokenize,
bool valueToLower = true
)
Parameters
- document
- Type: CMS.DataEngineISearchDocument
Document to which should be field added - name
- Type: SystemString
Name of new field - value
- Type: SystemObject
Value of field - store
- Type: SystemBoolean
Should be value stored - tokenize
- Type: SystemBoolean
Should be value tokenized - valueToLower (Optional)
- Type: SystemBoolean
If true, the value of the field is converted to lower case before adding to the index
See Also