Null Search Result | Community
Skip to main content
New Participant
September 26, 2023
Solved

Null Search Result

  • September 26, 2023
  • 2 replies
  • 685 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by A_H_M_Imrul

Hello @udayashrigo1,

 

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/wcm/components/search/v1/search/search.html

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

 

Thanks

 

 

 

  

2 replies

kautuk_sahni
Employee
September 28, 2023

@udayashrigo1 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
A_H_M_Imrul
A_H_M_ImrulAccepted solution
New Participant
September 26, 2023

Hello @udayashrigo1,

 

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/wcm/components/search/v1/search/search.html

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

 

Thanks