Expand my Community achievements bar.

SOLVED

Global Search showing irrelevant data

Avatar

Level 2

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!!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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?l...

 

 

 

View solution in original post

3 Replies

Avatar

Community Advisor

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


Avatar

Correct answer by
Community Advisor

@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?l...

 

 

 

Avatar

Administrator

@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