Global Search showing irrelevant data | Community
Skip to main content
Level 2
November 20, 2023
Solved

Global Search showing irrelevant data

  • November 20, 2023
  • 3 replies
  • 748 views

Hello Support,

 

We are using global search with our website to search page by content of text, text area and PDF/DOC file content as well.

 

This global search now showing irrelevant data like name of admin user as well who is saving data with AEM admin, which are not saved with any content.

 

How we can resolve this issue.
Please help and guide on this.

 

Thanks!!

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

@bhanuperiwal 

It would be clearly helpful if you can share you query or custom code that you implemented for the business. 

However, in your case, it looks like the search scope is not properly defined.

you can look into this article for a fulltext search example: https://medium.com/@shubhanshu.singh/aem-fulltext-lucene-search-implementation-part-1-cd99687ff736

also this: https://sourcedcode.com/blog/aem/find-aem-jcr-nodes-with-full-text-search

A cheatsheet for jcr query: https://experienceleague.adobe.com/docs/experience-manager-65/assets/JCR_query_cheatsheet-v1.1.pdf?lang=en

 

 

 

3 replies

TarunKumar
Community Advisor
Community Advisor
November 20, 2023

Hi @bhanuperiwal ,

Can you check how you are building your query for search. Having a look at custom code that you have implemented for search may be helpful.
Your search query should not work on the property like name of admin or modified by.


Thanks
Tarun


A_H_M_Imrul
Community Advisor
A_H_M_ImrulCommunity AdvisorAccepted solution
Community Advisor
November 20, 2023

@bhanuperiwal 

It would be clearly helpful if you can share you query or custom code that you implemented for the business. 

However, in your case, it looks like the search scope is not properly defined.

you can look into this article for a fulltext search example: https://medium.com/@shubhanshu.singh/aem-fulltext-lucene-search-implementation-part-1-cd99687ff736

also this: https://sourcedcode.com/blog/aem/find-aem-jcr-nodes-with-full-text-search

A cheatsheet for jcr query: https://experienceleague.adobe.com/docs/experience-manager-65/assets/JCR_query_cheatsheet-v1.1.pdf?lang=en

 

 

 

kautuk_sahni
Community Manager
Community Manager
November 23, 2023

@bhanuperiwal Did you find the suggestions from users 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