Add pinned hits conditionally #5872
-
Hi guys, I want to display a certain set of pinned_hits in the infinite hits list, but only when no other filters or queries are active. Obviously, if I add them to the TypesenseInstantSearchAdapter in additionalSearchParameters, they are always present during search. So I need a way to add them to the configuration conditionally after the fact. I can't seem to find a way. Neither middlewares, nor the deprecated searchFunction, nor an ais-configure tag did the trick so far. Is there a way to do this without rules/overrides/curations beforehand? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is a question for TypeSense, not InstantSearch |
Beta Was this translation helpful? Give feedback.
in Algolia you can do this with the builtin rules, which can have a condition on applied filters, so there's no need for this feature frontend