Click or drag to resize
SearchHelperAddGeneralField Method
Adds a general field do the search document.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
Syntax
C#
public static void AddGeneralField(
	ILuceneSearchDocument document,
	string name,
	Object value,
	bool store,
	bool tokenize,
	bool valueToLower = true
)

Parameters

document
Type: CMS.SearchILuceneSearchDocument
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