Asset share common - search functionality needs to be overridden | Community
Skip to main content
November 22, 2023
Solved

Asset share common - search functionality needs to be overridden

  • November 22, 2023
  • 1 reply
  • 738 views

Dear Team,

 

I've a requirement where the existing asset share common search functionality to be overridden.

Instead of token based search, needs a 'startswith' search. 

For example: if file name is abcdef_xyz.jpeg , if the user enter abc or abcd, I should get the result. 

I created a servlet for the query execution and I believe logic is okay to give results.

But unfortunately, my servlet logic is by-passed and after executing the servlet logic , the control goes to 'asset share commons' and a new query got created from the same string( abc / abcd) that I passed and the result of that query is available in the page. 

 

I couldn't find how it is communicating to asset share commons. In the page I'm using 'asset share common- search-results' component to display the results. That's one clue I've with. Do I need to replace the search results component in-order to make it work?

 

 

The highlighted is my facet search. The left hand side is authored with the 'asset share common- search results'.

 

Below is the snip of the log:

 

 

After line number: 932 , control goes to 'asset share commons' and the actual result we see in the page is through that query.

 

Can someone throw any ray of hope?

 

NB: Please let me know if you guys need more details, so that we can sort this out.

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 Teja_G

@lakshmi_anil by default references point to asset share commons, make sure to overlay the search component and all it references then point the mapping to you custom component and classes. Both at component level and content level. Then control moves to your custom components where you can play around. 

 

Thank you!!

1 reply

Teja_GAccepted solution
Level 3
January 9, 2024

@lakshmi_anil by default references point to asset share commons, make sure to overlay the search component and all it references then point the mapping to you custom component and classes. Both at component level and content level. Then control moves to your custom components where you can play around. 

 

Thank you!!