↑↓ selectEnter openEsc close

    1. Elbuz

    How to limit which products smart search shows

    2 min readUpdated

    Elbuz smart search shows shoppers only the products you allow: you can hide out-of-stock products, move them to the end of the list, or set a condition that decides whether a product gets into search at all.

    When you need this:

    • Shoppers run into “out of stock” — search shows only what's buyable.
    • Your range is narrow, and search looks empty without out-of-stock products — they go to the end of the list.
    • The catalog has products without a price or photos, or service items — a selection rule keeps them out of search.

    Where to start: the “Limits” tab → stock checkboxes, for everything else — the selection rule.

    What you can limit

    The “Limits” tab: the availability checkboxes and the condition “Price greater than 0 and Total photos greater than 0” spelled out in words
    1In stock only
    2Out of stock at the end
    3Selection condition
    4Separate save
    5The condition in words
    1. Out-of-stock products aren't shown; takes effect immediately.
    2. Out-of-stock products come after those in stock.
    3. Products that don't match the condition don't get into the index.
    4. The condition is saved only with this button and takes effect after the index update.
    5. Spelled out, so you can check the condition before rebuilding the index.

    How to hide out-of-stock products or move them to the end

    The “Product display limit” card has two checkboxes, both on by default.

    • “Search only for products that are in stock” — out-of-stock products aren't shown at all.
    • “Show in-stock products first (out-of-stock at the end of the list)” — out-of-stock products stay but come after the ones in stock.

    “In stock” means the stock statuses that have the “In stock” type selected in the stock status list; “On order” isn't included. Search receives the list of these statuses when the widget form is saved: if you changed a status type, open the smart search form and close the window.

    Both checkboxes take effect from the next query, without rebuilding the index. When both are on, the first one wins: there are no out-of-stock products, so nothing moves to the end. How stock rules combine with the shopper's sorting — what happens when several rules are on.

    How to set a condition for which products get into search

    The “Which products to show in search” card is a condition builder over product catalog fields. A product that doesn't match the condition doesn't get into the search index: the shopper won't find it either in the search window or through the API.

    1. Add a rule: choose a catalog field, an operator and a value. For numbers and dates — “equal”, “greater”, “less”, “between”; for text — “contains”, “begins with”, “is empty” and others.
    2. Add more rules and groups, and choose “AND” or “OR” between them.
    3. Read the explanation below the buttons: the app restates the condition in words, for example “Price is greater than 0 and Total photos is greater than 0”.
    4. Click “Save” below the builder. This button saves only the condition: the form's autosave doesn't apply to it.
    5. Click “Create search index” on the “Setup” tab. The condition is applied when the index is built; until the rebuild, search shows products by the old condition.
    • “Clear All” clears the builder. To remove the condition completely, clear it, click “Save” and rebuild the index.
    • The condition is not saved — if it has a field or operator the builder doesn't offer, the app refuses with the message “The condition was not saved…”. Reopen the form and build the condition again.
    • The condition and categories work together: search gets products from the selected categories that also match the condition.

    A strict rule can hide most of the catalog from search. Read the explanation before rebuilding, and afterwards check a few usual queries on the “Search test” tab.

    Scenarios

    Shoppers see products that aren't available and leave

    What to do. Keep “Search only for products that are in stock” turned on.

    What you get. Search shows only products with statuses of the “In stock” type, from the next query.

    Narrow range: without out-of-stock products, search is often empty

    What to do. Turn off “in stock only”, keep “Show in-stock products first”.

    What you get. The shopper sees all products found, with the ones that can be bought at the top.

    The catalog has supplier products without a price and photos

    What to do. Set the condition “Price” greater than 0 and “Total photos” greater than 0, save it with the button below the builder and rebuild the index.

    What you get. Only products with a price and photos get into search; the rest of the catalog stays in Elbuz unchanged.

    What to do when search shows the wrong products

    What you seeWhyWhat to do
    You changed the condition, but search shows the same productsthe condition takes effect only after the index rebuild, or it wasn't saved with its buttonclick “Save” below the builder, then “Create search index”
    After the rebuild, search is almost emptythe condition cut off most of the catalogreread the explanation, loosen the condition, rebuild
    The product is in stock, but search doesn't show itits stock status type isn't “In stock”change the status type, open and close the widget form
    Out-of-stock products are still shown“in stock only” is offturn the checkbox on

    FAQ

    How do I show only one category in search?

    Select it with the “Product categories” button in the “Search index” card — details in how to index part of the catalog.

    Which is better: “in stock only” or “in stock first”?

    Wide range — “in stock only”. Narrow — “in stock first”, otherwise search is often empty.

    Does the condition apply to the search API?

    Yes. A product that didn't pass the condition doesn't get into the index, so it isn't in API responses either.

    Why isn't the condition saved together with the other form fields?

    The builder has its own “Save” button: the server checks the condition before writing it. Click it after every change.

    Where it is and who has access

    Menu
    Directories → Categories → the “Widget settings - Smart search” tile → the “Limits” tab
    Access right
    the “Smart product search widget” window in “Group permissions”
    Prepare
    the “In stock” type for the stock statuses with which a product can be bought

    Related topics

    Was this article helpful?

    Missing a feature? Tell us.

    We will add it for free if other users need it too.

    If only you need it, we will agree on it separately.

    Article contents

    Suggest an improvement

    Try Elbuz free