我在liferay-portlet.xml的任何動態數據portlet定義中找不到<indexer-class>
聲明。因此,您需要創建一個EXT插件,該插件具有1)用於DDL記錄的索引器類和2)用Portlet 169更新爲<indexer-class>
的liferay-portlet.xml。成功完成此操作後,您必須更新搜索作爲this page解釋,並在下面的列表中添加com.liferay.portlet.dynamicdatamapping.model.DDMContent
Portlet的顯示設置:
{"facets": [
{
"className": "com.liferay.portal.kernel.search.facet.AssetEntriesFacet",
"data": {
"frequencyThreshold": 1,
"values": [
"com.liferay.portlet.bookmarks.model.BookmarksEntry",
"com.liferay.portlet.blogs.model.BlogsEntry",
"com.liferay.portlet.calendar.model.CalEvent",
"com.liferay.portlet.documentlibrary.model.DLFileEntry",
"com.liferay.portlet.journal.model.JournalArticle",
"com.liferay.portlet.messageboards.model.MBMessage",
"com.liferay.portlet.wiki.model.WikiPage",
"com.liferay.portal.model.User",
"com.liferay.portlet.dynamicdatamapping.model.DDMContent"
]
},
...
...
這是高層次的方法。你需要從這裏連接點。希望這可以幫助!
(如果你想知道爲什麼不使用掛鉤,而不是原因:由於鉤不支持覆蓋的Liferay-portlet.xml中然而,當提到here)