Click or drag to resize
SearchIndexProviderGetSearcher Method
Returns IndexSearcher object with dependence on current index.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 13.0.131
Syntax
C#
public IIndexSearcher GetSearcher(
	bool readOnly
)

Parameters

readOnly
Type: SystemBoolean
Indicates whether searcher will be used for deleting (false) or searching (true)

Return Value

Type: IIndexSearcher
Remarks

In case of readonly instance (readOnly = true) cached instance is returned and shared among other thread.

In case of writeable instance (readOnly = false) new instance is created and must be disposed by caller (Close).

See Also