简体   繁体   中英

To Hook Web Content Search Portlet

How will I customize the searching of the Web Content Search Portlet ?

I've tried to add the following in portal-ext.properties but it seemed not working. The result is always "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

It only searching in the Web content files and journal article. I don't know what to do. Please help. Thank you

Please try reindexing the Search Indexes from the server settings in the control panel of Liferay. If this does not help, try to crank up the logging levels in the control panel. Set: com.liferay.portal.search.lucene.LuceneIndexSearcherImpl to debug or even higher if you like. Take a look at the Server output and check if something funny is going on there. But my first guess would be a corrupt search index.

The Web Content Search portlet only searches web content articles. They have to be type JournalArticle to be searched.

You may try with Search portlet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM