光 Hikari No kun
光 Hikari No kun

Reputation: 418

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

Upvotes: 0

Views: 934

Answers (2)

juanmeza
juanmeza

Reputation: 163

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.

Upvotes: 1

Gevatterjan
Gevatterjan

Reputation: 590

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.

Upvotes: 1

Related Questions