挂钩 Web 内容搜索 Portlet

To Hook Web Content Search Portlet

如何自定义 Web 内容搜索 Portlet 的搜索?

我尝试在 portal-ext.properties 中添加以下内容,但它似乎不起作用。结果总是 "No pages were found that matched the keywords: a".

com.liferay.portlet.blogs.util.BlogsOpenSearchImpl=true
com.liferay.portlet.bookmarks.util.BookmarksOpenSearchImpl=true
com.liferay.portlet.calendar.util.CalendarOpenSearchImpl=true
com.liferay.portlet.directory.util.DirectoryOpenSearchImpl=true
com.liferay.portlet.documentlibrary.util.DLOpenSearchImpl=true
com.liferay.portlet.imagegallery.util.IGOpenSearchImpl=true
com.liferay.portlet.journal.util.JournalOpenSearchImpl=true
com.liferay.portlet.messageboards.util.MBOpenSearchImpl=true
com.liferay.portlet.wiki.util.WikiOpenSearchImpl=true

它只在Web 内容文件和期刊文章中搜索。我不知道该怎么办。请帮忙。谢谢

请尝试从 Liferay 控制面板的服务器设置中重新索引搜索索引。如果这没有帮助,请尝试提高控制面板中的日志记录级别。放: com.liferay.portal.search.lucene.LuceneIndexSearcherImpl 进行调试,如果您愿意,甚至可以更高。查看服务器输出并检查那里是否发生了一些有趣的事情。但我的第一个猜测是损坏的搜索索引。

Web 内容搜索 portlet 仅搜索 Web 内容文章。 它们必须是 JournalArticle 类型才能被搜索。

您可以尝试使用 Search portlet。