Expand my Community achievements bar.

SOLVED

Asset share common - search functionality needs to be overridden

Avatar

Level 1

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?

 

lakshmi_anil_1-1700670135798.png

 

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:

 

lakshmi_anil_0-1700669867655.png

 

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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