RE: Search bar portlet suggestions configurations

Jamie Sammons, modified 2 Years ago. New Member Posts: 5 Join Date: 3/1/23 Recent Posts

Hello, 

I want to configure search bar suggestions to not include folder names and images in the suggestions, so how can I do this in liferay CE version 7.4 because in DXP we have blueprints where we can define queries but in CE blueprints are not there, so which classes I can override to do this ?

Thanks in Advance.  

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 17 Join Date: 3/16/12 Recent Posts

Hi,

If you want to customize the search query (thus, the results), you need to override the default BasicSuggestionsContributor.

One way would be to re-implement the BasicSuggestionsContributor and override the com.liferay.portal.search bundle following https://github.com/liferay/liferay-portal/blob/master/tools/osgi-marketplace-override-README.markdown.

I've created https://issues.liferay.com/browse/LPS-177282 based on your question and put it in our backlog, though I can't promise if that's going to be worked on anytime soon. Neverthless, feel free to vote/comment on the ticket and share more details about your needs and use-case.

-Tibor