| SphinxSearchOptionsSetFilterTFilterable Method (String, TFilterable, Boolean) |
Sets a filter for the attribute with the given name.
Namespace: SphinxConnector.NativeApiAssembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax public void SetFilter<TFilterable>(
string attributeName,
TFilterable value,
bool exclude
)
where TFilterable : IFilterableType
Public Sub SetFilter(Of TFilterable As IFilterableType) (
attributeName As String,
value As TFilterable,
exclude As Boolean
)
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 See Also