April 14, 2020
Estimated Post Reading Time ~

Using Query Builder API from within an AEM 6.1 Sling Servlet

You can create an AEM application that searches the AEM JCR for assets and displays results to the end-user. For example, you can use a custom Sling Servlet to search CQ pages under a specific repository node (for example, nodes under /content) and look for a specific search term. All content that satisfies the search criteria is included in the search results. To search the AEM repository, you use the Query Builder API from within a Sling Servlet. This API requires that you define search parameters and an optional filter. After you execute the query, the results are stored in a result set. You can display the result set in an AEM web page.

When working with the Query Builder API, you can use a Java API or a Restful API. This development article uses the AEM Query Builder API within a custom Sling Servlet to perform searches.


To read this development article, click https://helpx.adobe.com/experience-manager/using/using-query-builder-servlet.html.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.