Customize Search Core component | Community
Skip to main content
rsl_lucky
Level 4
October 9, 2021

Customize Search Core component

  • October 9, 2021
  • 1 reply
  • 889 views

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.

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

1 reply

Sanjay_Bangar
Community Advisor
Community Advisor
October 9, 2021

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

 

rsl_lucky
rsl_luckyAuthor
Level 4
October 12, 2021

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.