Sets a range filter for the attribute with the given attribute name.
Namespace: Gronewold.SphinxConnectorAssembly: Gronewold.SphinxConnector (in Gronewold.SphinxConnector.dll) Version: 2.8.0.26312 (2.8.0.26312)
Syntax
| C# |
|---|
public void SetFilterRange<TRangeFilterable>(
string attributeName,
TRangeFilterable min,
TRangeFilterable max,
bool exclude
)
where TRangeFilterable : IRangeFilterableType
|
| Visual Basic |
|---|
Public Sub SetFilterRange(Of TRangeFilterable As IRangeFilterableType) ( _
attributeName As String, _
min As TRangeFilterable, _
max As TRangeFilterable, _
exclude As Boolean _
) |
Parameters
- attributeName
- Type: System..::..String
The name of the attribute to filter on.
- min
- Type: TRangeFilterable
The mininum value for the attribute.
- max
- Type: TRangeFilterable
The maximum value for the attribute.
- exclude
- Type: System..::..Boolean
if set to true excludes the matching documents from the result.
Type Parameters
- TRangeFilterable
- The type to filter on.
Examples
Exceptions
See Also