Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Null Search Result

Avatar

Level 2

For search term where there is no search result populated the search result count is shared as “”. 

However in Analytics empty strings goes to unspecified.

 

I want to do this through this ensighten. can anyone explain how to add a condition step-by-step.

 

  • add a condition when search term is not empty and search_result_count is “”, overwrite empty string to “zero”

Appreciate the help in advance.

Thankyou,

Udaya

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @UdayashriGo,

 

Are you using the AEM Core WCM search component? In such case you can overlay the component and write your own search.html.

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc...

There you can write any condition on the any property comes out of com.adobe.cq.wcm.core.components.models.Search model. 

 

Thanks

 

 

 

  

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @UdayashriGo,

 

Are you using the AEM Core WCM search component? In such case you can overlay the component and write your own search.html.

https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wc...

There you can write any condition on the any property comes out of com.adobe.cq.wcm.core.components.models.Search model. 

 

Thanks

 

 

 

  

Avatar

Administrator

@UdayashriGo Did you find the suggestion from @A_H_M_Imrul helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni