Expand my Community achievements bar.

Query builder 

Avatar

Level 2

Hi all, 

After search a lot on google about querybuilder component, and in this page:

https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder. html

https://docs.adobe.com/docs/en/aem/6-1/develop/search/querybuilder-api.html

https://helpx.adobe.com/experience-manager/using/using-query-builder-api.html

https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html

https://helpx.adobe.com/experience-manager/using/using-query-builder-servlet.html

i don't understand the funcionality of this component. I know that exist a component out of the box called querybuilder, but don't know how to configurity it.

My target is build a component to search in all my products (facet search).

This component only search for assets? How i can set it to search for produts? This is possible?

I would like to do something like this capture: 

 

Thanks a lot in advance.

2 Replies

Avatar

Level 4

This is an AEM API - not a component. This API is built upon the JCR API.  http://jackrabbit.apache.org/jcr/jcr-api.html

YOu can use the QB API to build AEM components - as shown here: https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html. In this article, you can learn how to use this Java API in an AEM OSGi bundle and then how to call it from a JSP. THen the data is displayed in the JSP in a grid control. 

You can search for any JCR node type. For example: 

  map.put("type", "cq:Page");

This topic describes the capabilities of this API: https://docs.adobe.com/docs/en/aem/6-1/develop/search/querybuilder-api.html

Avatar

Level 10

Querying is covered in this ASK the AEM COmmunity Experts session:  

 https://communities.adobeconnect.com/p3zl7gxbvbc/?launcher=false&fcsContent=true&pbMode=normal

I recommend that you watch this one.