ComparisonFilter
|
Type |
Class |
|
Extends |
|
|
Import path |
|
A filter with relation conditions. Used for filtering search results by comparing the entity's attribute to a certain value.
Examples:
-
Return only those search results where
titleis equal to"Introduction". -
Return only those search results where the number of words is less than
1000.
Constructor
Parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
|
The entity's attribute to be compared with the Example: |
|
|
The operator used for comparing the attribute with the Accepted values:
| |
|
|
|
The value to compare the entity's attribute with. Example: |
Properties
|
Name |
Type |
Description |
|---|---|---|
|
|
|
Required. The entity's attribute to be compared with the Example: |
Methods
toDTO
Maps the ComparisonFilter instance to its DTO (data transfer object) format.
Signature
Return value
Returns the ComparisonFilter instance in a standardized DTO format.