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
Liferay 7.0 GA5 Custom entity Search portlet configuration not displaying
Hi
we created custom entity to display the docId extra column in Document libray and it's working fine.
But we want to search custom entity(docId) in search portlet and display when click on that link it will redirect to document libray preview page <entity local-service="true" name="DLDocId">
<!-- PK fields -->
<column name="dlDocId" primary="true" type="long" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<!-- Other fields -->
<column name="fileEntryId" type="long" />
<column name="fileVersionId" type="long" />
<column name="docId" type="String" /> <finder name="F_V" return-type="DLAutoNumber">
<finder-column name="fileEntryId" />
<finder-column name="fileVersionId" />
</finder>
<finder name="L_F" return-type="DLAutoNumber">
<finder-column name="fileEntryId" />
<finder-column name="fileVersionId" />
</finder>
</entity>created index class in service layer ufollowed by https://help.liferay.com/hc/en-us/articles/360018157871-Creating-an-Entry-Indexer-
it's added in controlpanel for reindex, but i did not find it search faceted place. Please let me know how to add it in search portletto add it in faceted place is it mandatory to add the below lines in service.xml
<reference package-path="com.liferay.portlet.asset" entity="AssetEntry"/>
<reference package-path="com.liferay.portlet.asset" entity="AssetLink"/>
Thanks,Srini
we created custom entity to display the docId extra column in Document libray and it's working fine.
But we want to search custom entity(docId) in search portlet and display when click on that link it will redirect to document libray preview page <entity local-service="true" name="DLDocId">
<!-- PK fields -->
<column name="dlDocId" primary="true" type="long" />
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />
<!-- Other fields -->
<column name="fileEntryId" type="long" />
<column name="fileVersionId" type="long" />
<column name="docId" type="String" /> <finder name="F_V" return-type="DLAutoNumber">
<finder-column name="fileEntryId" />
<finder-column name="fileVersionId" />
</finder>
<finder name="L_F" return-type="DLAutoNumber">
<finder-column name="fileEntryId" />
<finder-column name="fileVersionId" />
</finder>
</entity>created index class in service layer ufollowed by https://help.liferay.com/hc/en-us/articles/360018157871-Creating-an-Entry-Indexer-
it's added in controlpanel for reindex, but i did not find it search faceted place. Please let me know how to add it in search portletto add it in faceted place is it mandatory to add the below lines in service.xml
<reference package-path="com.liferay.portlet.asset" entity="AssetEntry"/>
<reference package-path="com.liferay.portlet.asset" entity="AssetLink"/>
Thanks,Srini
Attachments:
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™