How to generate the URL for file entry contents in custom search portlet ?

Vishnu S Kumar, modified 7 Years ago. Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts

In our Liferay DXP custom search portlet, we display the title of the file entries and when user click the title it will route the user to view the file entry. (Same behaviour of OOB search portlet). But how do we generate the URL for that file entry or how is Liferay OOB search portlet generate the link for documents & media results?