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

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
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