Skip to main content
Custom plugins can help in these cases:
  • If you want to show a data subset differently from all matching products or articles. For example, showing all on-sale products in a separate list, or only show help articles.
  • You want to support searching data from other sources in your autocomplete menu.
You can add a custom plugin using the beforeAutocompleteOptions hook.

Example of sale items

This example shows how to display on-sale products in a separate list (in addition to all other results). You can achieve this by creating a source that searches into your product index, and applies a filter to only include items where the named_tags.onSale attribute is true.
JavaScript
Last modified on June 19, 2026