The Filter objects
Sitecore Search offers various ways of filtering results. You can use many properties to define and narrow results in a filter object. Filters are added to the WidgetRequest. There are three types of filter: comparative filters, logic operator filters, and list filters as listed in the following sections. Each section lists filter objects that can be added to the request.
Comparative filters
Every search query associates a widget with an entity. Use this filter to compare an attribute of the entity with a value. To instantiate one of these filters, provide the attribute's name and compared value.
Logic operator filter
Use this filter to provide multiple filters as options based on some logic. To instantiate one of these filters, provide an array of filters, as shown in the following code block.
List filter
Use these filters to use multiple values for an attribute. To instantiate one of these filters, provide the attribute name and an array of values, as shown in the following code block.
Filter methods
The following code block lists the various methods related to filtering and accessible through the WidgetRequest object.