Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Search bar portlet suggestions configurations
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.
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
Powered by Liferay™