Message Boards
Faceted Search with Headless API
Christopher Dawson, modified 2 Years ago.
Faceted Search with Headless API
New Member Posts: 11 Join Date: 2/27/12 Recent PostsI 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.