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
RE: Customize search results in liferay 7.2
Hi there!
In my site running on liferay 7.2 CE I need to restrict the type of Search portlet results. I want to show only web content articles of a custom structure. Is it possible to do so? May be I should use the custom filter widget (https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/filtering-search-results-with-the-custom-filter-widget) or I should write a custom app?
Any help is appreciated!
Thanks in advance,
Eli
In my site running on liferay 7.2 CE I need to restrict the type of Search portlet results. I want to show only web content articles of a custom structure. Is it possible to do so? May be I should use the custom filter widget (https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/filtering-search-results-with-the-custom-filter-widget) or I should write a custom app?
Any help is appreciated!
Thanks in advance,
Eli
Hi , You can try custom facet
https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/custom-facet
https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/custom-facet
Hi, Mohammed and thanks for the reply.Yes, I've already checked this option but the problem is that I'm not quite sure how to assign a particular structure type - should I set its ID in some of the conf fields or may be the ddm template key? It's a little confusing for me.
Mohammed Yasin:
Exactly what I needed! You just saved me several hours. Thanks!
Hi , You can try custom facet
https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/custom-facet-link
FYI, here's the 7.2 link: https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/custom-facet
I don't think there's much difference in this case, but best to hit the docs for the right version in case something's changed.
I don't think there's much difference in this case, but best to hit the docs for the right version in case something's changed.
If you want to filter by structure key, you can use the custom filter as shown in the attached image.
Attachments:
Hi, Russell!
Ok, I will give a try. Thanks for the reply!
Ok, I will give a try. Thanks for the reply!
Gopal Prasad Satapathy, modified 5 Years ago.
Junior Member
Posts: 51
Join Date: 3/29/18
Recent Posts
Hello,
I am using DXP 7.1.
My requirement is to restrict images from showing up in the search result when search is performed only from the default search bar module , but not from any other search available like searching in Document and Media.
Could you please guide me how you created the custom filter? May be it will help me achieve my objective.
Thanks in advance.
-Gopal
I am using DXP 7.1.
My requirement is to restrict images from showing up in the search result when search is performed only from the default search bar module , but not from any other search available like searching in Document and Media.
Could you please guide me how you created the custom filter? May be it will help me achieve my objective.
Thanks in advance.
-Gopal
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™