Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Customize Search Core component

Avatar

Level 5

HI All,

Have a requirement of using Search core component and enhance its functionality to meet few business logic.

Could anyone let know the process to make core functionality to work on page for searching a text in a component content and provide the results matching it. Also let know on how steps to be followed to enhance Search capabilities.

Thanks in Advance.

2 Replies

Avatar

Community Advisor

Hi @rsl_lucky ,

  • First,You need to overlay of search core component from this location.  core/wcm/components/search/v1/search
  • Create custom search servlet which uses QueryBuilder API to do full-text search for pages and assets.
  • Create search.html and search.js and make sure that your search servlet get called.
  • Refactor Oak Index definition for cqPageLucence.

 

Please let me know if you want more information or it is sufficient.

 

Regards,

Sanjay

 

Avatar

Level 5

Hi bangar50

Need to implement search on FAQs page where all Q&A are displayed. Multiple tabs on the page, each tab have different set of Q&A`s.

Need to search keyword that matches in all Tabs faqs and display respective Q&A.

Each Tab on page is built with XF (Exp Fragment) & with-in that each Q&A is a CF(Content Fragment).

Any inputs on how can we design search for this case.

 

Thank you.