- Type:
object
- Default:
{}
- Scope:
settings
renderingContent
parameter defines how your search results and facets are ordered in the user interface.
This configuration is primarily used by InstantSearch to control widget behavior, display banners, and sort or hide facets.
You can set a default using setSettings
and override it dynamically with Rules.
Usage
- Use with InstantSearch widgets like
dynamicWidgets
,Hits
, orInfiniteHits
. - If you’re not using InstantSearch, you can manually build a UI with
renderingContent
. - This property has a 2 MB limit. Exceeding this size causes errors.
Properties
Controls how facets and their values are ordered in the UI.
Custom widget configuration returned from active rules.
Usage
InstantSearch uses this property to define the UI through configuration—for example, with thedynamicWidgets
widget.
If you’re not using InstantSearch for your frontend,
you can build a UI with renderingContent
Example
The following example snippet usesrenderingContent
to define how results are displayed:
- In dynamic widgets,
size
is always shown beforebrand
. - For the
brand
facet: the facet valueuniqlo
is always shown first,muji
is never shown, and other facet values are sorted by decreasing facet count. - For the
size
facet: only the valuesS
,M
, andL
are shown and other facet values are hidden.
Current API clients
Current API clients
Legacy API clients
Legacy API clients