Delivery Tier Fluent Search API
On this page
Introduction
Goal
Create and execute search queries using the Fluent Search API in Bloomreach Experience Manager's delivery tier.
Background
Bloomreach Experience Manager's delivery tier (HST) provides a Fluent Java API through HstQueryBuilder to create and execute search queries. This API provides functionalities equivalent to those of the Legacy Search API but is more intuitive to use and results in better code readability. It is, therefore, the recommended search API for all new implementation projects.
When an HST query is executed, the HstQuery object is translated into a JCR XPath query, which is executed in the Hippo Repository. The Hippo Repository returns JCR Nodes as hits, that in turn are mapped to HippoBeans in the HstQueryResult object.
Examples
Below is an example of a Java delivery tier component using the Fluent Search API.
More detailed documentation about using the Fluent Search API can be found on the following pages:
- Bootstrap a Query using the Fluent Search API
- Add Constraints to a Query using the Fluent Search API
MySearchComponent Java Code Snippet
Java Class MySearchComponent: