Foros de discusión

Really stuck on custom search portlet. (make it search in knowledgebase)

Peter Hellstrand, modificado hace 11 años.

Really stuck on custom search portlet. (make it search in knowledgebase)

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
Is it possible to mke the search portlet search for Knowledgebase articles?

I have tried adding it to the advanced configuration of search 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',
[b]'com.liferay.knowledgebase.model.Article'[/b]


]}, displayStyle: 'asset_entries', fieldName: 'entryClassName', label: 'asset-type', order: 'OrderHitsDesc', static: false, weight: 1.5},{className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', data: {displayStyle: 'list', frequencyThreshold: 1, maxTerms: 10, showAssetCount: true}, displayStyle: 'asset_tags', fieldName: 'assetTagNames', label: 'tag', order: 'OrderHitsDesc', static: false, weight: 1.4},{className: 'com.liferay.portal.kernel.search.facet.MultiValueFacet', data: {displayStyle: 'list', frequencyThreshold: 1, maxTerms: 10, showAssetCount: true}, displayStyle: 'asset_tags', fieldName: 'assetCategoryNames', label: 'category', order: 'OrderHitsDesc', static: false, weight: 1.3},{className: 'com.liferay.portal.kernel.search.facet.RangeFacet', data: {frequencyThreshold: 1, ranges: [{label:'modified', range:'[19700101000000 TO *]'}]}, displayStyle: 'modified', fieldName: 'modified', label: 'modified', order: 'OrderHitsDesc', static: false, weight: 1.1}]}



I have checked these possibilities in portal-ext.properties. Is knowledgebase articles unsupported. What to do?

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.journal.util.JournalOpenSearchImpl=true 
com.liferay.portlet.messageboards.util.MBOpenSearchImpl=true 
com.liferay.portlet.wiki.util.WikiOpenSearchImpl=true
thumbnail
Jan Geißler, modificado hace 11 años.

RE: Really stuck on custom search portlet. (make it search in knowledgebase

Liferay Master Mensajes: 735 Fecha de incorporación: 5/07/11 Mensajes recientes
knowledge-base-portlet is a seperate portlet, and not located in the portal.
So I would guess, that there is no OpenSearch Provider for that particular portlet?

If so, you would have to implement this yourself.

So long
Jan
Peter Hellstrand, modificado hace 11 años.

RE: Really stuck on custom search portlet. (make it search in knowledgebase

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
Thank you
thumbnail
jelmer kuperus, modificado hace 11 años.

RE: Really stuck on custom search portlet. (make it search in knowledgebase

Liferay Legend Mensajes: 1191 Fecha de incorporación: 10/03/10 Mensajes recientes
There is an indexer registered in it's liferay-portlet.xml file

try using

com.liferay.knowledgebase.model.KBArticle

instead of

com.liferay.knowledgebase.model.Article
Peter Hellstrand, modificado hace 11 años.

RE: Really stuck on custom search portlet. (make it search in knowledgebase

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
You saved me. Did not sleep tonight because of this.
Peter Hellstrand, modificado hace 11 años.

RE: Really stuck on custom search portlet. (make it search in knowledgebase

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
Can $theme.search() be customized this way?