Click or drag to resize
ISearchProviderSearch Method
Searches content specified by parameters.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
Syntax
C#
DataSet Search(
	string siteName,
	string searchNodePath,
	string cultureCode,
	string searchExpression,
	SearchModeEnum searchMode,
	bool searchChildNodes,
	string classNames,
	bool filterResultsByReadPermission,
	bool searchOnlyPublished,
	string whereCondition,
	string orderBy,
	bool combineWithDefaultCulture
)

Parameters

siteName
Type: SystemString
Site code name
searchNodePath
Type: SystemString
Starting alias path without %
cultureCode
Type: SystemString
Culture code
searchExpression
Type: SystemString
Expression to searched for
searchMode
Type: CMS.SearchSearchModeEnum
Search mode - all words, any word, exact phrase
searchChildNodes
Type: SystemBoolean
Search child nodes under the given starting path
classNames
Type: SystemString
Class names in format cms.article;cms.news
filterResultsByReadPermission
Type: SystemBoolean
Indicates if only documents the current user is allowed to read should be displayed
searchOnlyPublished
Type: SystemBoolean
Indicates if only published documents should be searched
whereCondition
Type: SystemString
Where condition
orderBy
Type: SystemString
Order by clause
combineWithDefaultCulture
Type: SystemBoolean
Specifies if return the default culture document when specified culture not found

Return Value

Type: DataSet
See Also