Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Faceted Search with Headless API
I was hoping that someone from the community - or Liferay internal teams - could provide a simple example of how to pass back facet entries selected by a user to a headless resource?
I am able to generate the Facets themselves via interaction with the SearchContext and include them in the response payload. It's just not clear to me what I need to do with them when a user selects one. For example:
- Should I be converting them into Odata filters?
- Is there a way to format them so that they are transformed into an Aggregation?
Any help on this would be much appreciated as I am unable to find documentation that deals with this very specific scenario.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™