Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Search Result Using Servlet

Avatar

Former Community Member

Hello Everyone,

I have developed a Content Finder tab in which User would be able to view all content (Text/paragraphs) from Geometrixx website by default. Now I need to write a servlet to get content/paragraphs by using keywords (just like how they are able to search keywords in images).

Any Suggestion would be highly appreciated !

1 Accepted Solution

Avatar

Correct answer by
Level 10
   Build a servlet and use the Query builder API in the servlet. You can use search terms in Query builder API.   For information  about using Query builder API, see https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html  

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10
   Build a servlet and use the Query builder API in the servlet. You can use search terms in Query builder API.   For information  about using Query builder API, see https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html  

Avatar

Former Community Member

Hi smacdonald2008, Can u suggest me how to call servlet  from the javascript file (custom tab file) to display the custom search result in content finder tab.

Thanks,

Sawan

Avatar

Former Community Member

Hi Opkar,I gone through [3] example,If you look in servlet "entries" has not been defined anywhere . Can u suggest me logic and  how to initalize "entries" ?  I am new to CQ5,not getting how to write the logic for this part.

Avatar

Level 10

Here is another example of using a Servlet to call a servlet that reads the AEM JCR and constructs JSON data. Then the data is displayed in an AEM GUI component - in this case - a tree component. 

See:

https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html