How to set up the “AND” logic for the filter values

This article is general for Shopify, BigCommerceWix, WooCommerce, Magento 1, and Magento 2.

By default, the options of the multiple filters work by the “OR” logic. That’s when products that match any of the selected filter options are shown in the search results. You can set up the “AND” logic. So products that match all the selected filter options will be shown in the search results. For example, if a customer selects the “black” and “white” filter options on the storefront, the products that match all these options (not only one of them) will be displayed in the search results.

An example of the “OR” logic:

How to set up the "AND" logic for the filter values

An example of the “AND” logic:

How to set up the "AND" logic for the filter values

To set up the “AND” logic for the filter values, follow these steps:

  1. Go to the Searchanise (Smart Search & Filter) control panel > Filters section.
  2. Click the Manage filter or Manage custom filter link next to the filter in which you want to change the logic.
  3. Go to the Settings tab and select the “AND” value for the Selection operator setting.

    How to set up the "AND" logic for the filter values

  4. Apply the changes.

That’s it. The filter now works by the “AND” logic.

Enjoying your experience with Searchanise?

We’d appreciate it if you could take some time to leave a review. To do so, follow the link to your respective platform below:

Updated on June 3, 2022

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Back to top