Click or drag to resize
SphinxSearchOptionsSetFilterTFilterable Method (String, TFilterable, Boolean)
Sets a filter for the attribute with the given name.

Namespace: SphinxConnector.NativeApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
public void SetFilter<TFilterable>(
	string attributeName,
	TFilterable value,
	bool exclude
)
where TFilterable : IFilterableType

Parameters

attributeName
Type: SystemString
The name of the attribute to filter on.
value
Type: TFilterable
The value for the filter.
exclude
Type: SystemBoolean
if set to true excludes the matching documents from the result.

Type Parameters

TFilterable
The type to set a filter for.
Exceptions
ExceptionCondition
ArgumentNullExceptionattributeName or value is null.
ArgumentExceptionattributeName is empty.
See Also