2015-06-15 73 views
0

我將如何自定義搜索Web內容搜索Portlet掛鉤Web內容搜索Portlet

我試着在portal-ext.properties中添加以下內容,但它似乎無法正常工作。結果總是「找不到與關鍵字匹配的頁面: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內容文件和期刊文章中搜索。我不知道該怎麼辦。請幫忙。謝謝

回答

1

The 網頁內容搜尋 portlet只搜尋網頁內容文章。 他們必須鍵入要搜索的JournalArticle。

您可以試用搜索 portlet。

+1

是的。我使用了Search portlet,並且只是定製了可以在_liferay-developer-studio \ liferay-portal-6.2-ee-sp8 \ tomcat-7.0.42 \ webapps \ ROOT \ html \ taglib找到的** start.jsp ** \ UI \搜索\ start.jsp_ –

1

請嘗試從Liferay控制面板中的服務器設置重新索引搜索索引。如果這沒有幫助,請嘗試調整控制面板中的日誌記錄級別。設置: com.liferay.portal.search.lucene.LuceneIndexSearcherImpl調試或更高,如果你喜歡。看看服務器的輸出,並檢查是否有趣的事情發生在那裏。但我的第一個猜測將是一個腐敗的搜索索引。