Set up from the Meilisearch Cloud dashboard
Open your project in the Meilisearch Cloud dashboard, select the Search rules tab, and click New rule. The visual editor opens. For a walkthrough of the editor, see Create your first rule. Choose the index, hereproducts. In the Your rule panel, keep Anything selected, so the rule applies to every search.
Hover a result card, then click its hide icon. To hide only the document on the card, select This document only. To hide a whole set of documents at once, click Choose a filter…, then fill in the dialog:
- Index: the index holding the documents, here
products. - Matching a filter: the condition selecting them, here
status = Discontinued. The attribute you filter on must be in thefilterableAttributessetting of the index, otherwise the action selects no document.

hide-discontinued, then click Save and activate. Meilisearch indexes the rule, which can take a few seconds to a few minutes. Once it is live, the discontinued products no longer appear in any search, and nothing was removed from your index. To bring them back, pause the rule or delete it.
Set up on a self-hosted instance
- Hiding is a
scaleaction with aweightof0. - Hidden documents leave the results and the facet counts, but they stay in your index. You can still retrieve them with the documents endpoints.
- If another rule pins a hidden document, the document is pinned. See specific behaviors.
- The attributes used in
filtermust be in thefilterableAttributessetting of the index, otherwise the action selects nothing.
taskUid, because creating a rule is an asynchronous operation:
succeeded status. To follow its progress, pass the taskUid to the task API.
From then on, the discontinued products disappear from the results and from the facet counts, for every search and every user, while they stay in your index.
Next steps
Deboost documents
Lower documents instead of removing them
Boost documents
Rank a selection of documents higher
Pause a rule
Bring the hidden documents back
API reference
Endpoints, rule fields, and update behavior