---
title: Custom / quick filters
slug: custom-quick-filters
createdAt: 2022-09-18T16:09:54.000Z
---

Besides default filters, you can add your custom filters with needed filtering parameters.
Custom filters will always be displayed above the defaults.

![](https://api.archbee.com/api/optimize/5goaGPkGyPYxtK7K75CEC/7ydy0uJ69nu2gyaoRZual_image.png)

# Set-Up:

Go to the CMS — move to the “Website > Quick filters” definition.
Create a new entity or open an existing entity

![](https://api.archbee.com/api/optimize/5goaGPkGyPYxtK7K75CEC/feIOATw96S0g0BCwZkMsn_image.png)

**Available properties for set-up:**

![](https://api.archbee.com/api/optimize/5goaGPkGyPYxtK7K75CEC/DoF4kQmNIvuLtDxuAahQY_image.png)


**Multilanguage title** — Block title for every submitted language.
**Enabled?** - Will the current block be displayed on the public site.
**Order** - displaying queue for several blocks.
**Quick filters** - can store multiple filters. You can add existing filters or add a new one.

- Multilanguage title - Filter title for every submitted language.
- Order - a queue of filters if they count more than one.
- Icon type - Icon which displays for this filter, if you do not want to fill this property, the filter will be displayed like the checkbox. Find available icons you can here - [https://fontawesome.com/icons](https://fontawesome.com/icons)

**Query&#x20;**- You can use different **operators&#x20;**&#x74;o achieve different goals.&#x20;

- IS / IS\_NOT  - text comparison (case ignored)
- EMPTY / NOT\_EMPTY - logical operator
- EQUALS / NOT\_EQUALS - strong comparison (case sensitive)
- CONTAINS / NOT\_CONTAINS - check if field contains substring (case ignored)
- GT / GTE - numbers comparison (**G**reater **T**han / **G**reater **T**han or **E**qual)
- LT / LTE - numbers comparison (**L**ess **T**han / **L**ess **T**han or **E**qual)

### Examples of query

**Price greater than 10000&#x20;**

\{
&#x20;   data: 10000,
&#x20;   field: 'computedPrice',
&#x20;   operator: 'GT',
}

**Any model excluding "Golf"**

\{
&#x20;   data: 'Golf',
&#x20;   field: 'productLine.title',
&#x20;   operator: 'IS\_NOT',
}



### Complex query

Also you can use few filters with some condition in one query. In this case you will need to use next structure:

`{`
`    filters: [...],`
`    condition: '<AND / OR>'`
`}`

For example you would like to filter cars with kilometrage >= 1000 **AND** \<= 10 000

`{`
`    filters: [`
`        {`
`            data: 1000,`
`            field: 'kilometrage',`
`            operator: 'GTE',`
`        },`
`        {`
`            data: 10000,`
`            field: 'kilometrage',`
`            operator: 'LTE',`
`        },`
`    ],`
`    condition: '`**`AND`**`',`
`}`

Another example, you want to filter cars with red **OR** black color

`{`
`    filters: [`
`        {`
`            data: 'RED',`
`            field: 'color.title',`
`            operator: 'IS',`
`        },`
`        {`
`            data: BLACK,`
`            field: 'color.title',`
`            operator: 'IS',`
`        },`
`    ],`
`    condition: '`**`OR`**`',`
`}`

![](https://api.archbee.com/api/optimize/5goaGPkGyPYxtK7K75CEC/WQEsbLYQm3GUJWuBcZyLU_image.png "Example of complex filter")
