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
New Facet for searchWeb Portlet in Liferay 7.2
Hi,
I've seen that in Liferay 7.2 there are many facets to customize our searhPortlet results but i can´t find any to sort the results by publishedDate.
I suppose that I have to develop a MVP Portlet like ModifiedFacetPortlet to acomplish this task.
I've looking how the ModifiedFacetPortlet works and i'm trying to replicate it but searching for other search field, but when i try to create the buildDisplayContext, i'm trying to get the Facet object trought portletSharedSearchResponse.getFacet(getFieldName()).
This field name only returns a valid Facet when the value is "modified", that returns the modifiedFacet.
How can i create a new Facet to create the same type of portlet like ModifiedFacet but filtering by publishDate?
I've seen that in Liferay 7.2 there are many facets to customize our searhPortlet results but i can´t find any to sort the results by publishedDate.
I suppose that I have to develop a MVP Portlet like ModifiedFacetPortlet to acomplish this task.
I've looking how the ModifiedFacetPortlet works and i'm trying to replicate it but searching for other search field, but when i try to create the buildDisplayContext, i'm trying to get the Facet object trought portletSharedSearchResponse.getFacet(getFieldName()).
This field name only returns a valid Facet when the value is "modified", that returns the modifiedFacet.
How can i create a new Facet to create the same type of portlet like ModifiedFacet but filtering by publishDate?
Hi!,
Any idea of how can i create a facet to sort the results of the search by createdDate?
Kind regards,
Any idea of how can i create a facet to sort the results of the search by createdDate?
Kind regards,
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™