Fórum
Really stuck on custom search portlet. (make it search in knowledgebase)
Peter Hellstrand, modificado 11 Anos atrás.
Really stuck on custom search portlet. (make it search in knowledgebase)
Regular Member Postagens: 166 Data de Entrada: 30/11/11 Postagens Recentes
Is it possible to mke the search portlet search for Knowledgebase articles?
I have tried adding it to the advanced configuration of search portlet.
I have checked these possibilities in portal-ext.properties. Is knowledgebase articles unsupported. What to do?
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
Jan Geißler, modificado 11 Anos atrás.
RE: Really stuck on custom search portlet. (make it search in knowledgebase
Liferay Master Postagens: 735 Data de Entrada: 05/07/11 Postagens Recentes
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
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 11 Anos atrás.
RE: Really stuck on custom search portlet. (make it search in knowledgebase
Regular Member Postagens: 166 Data de Entrada: 30/11/11 Postagens Recentes
Thank you
jelmer kuperus, modificado 11 Anos atrás.
RE: Really stuck on custom search portlet. (make it search in knowledgebase
Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
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
try using
com.liferay.knowledgebase.model.KBArticle
instead of
com.liferay.knowledgebase.model.Article
Peter Hellstrand, modificado 11 Anos atrás.
RE: Really stuck on custom search portlet. (make it search in knowledgebase
Regular Member Postagens: 166 Data de Entrada: 30/11/11 Postagens Recentes
You saved me. Did not sleep tonight because of this.
Peter Hellstrand, modificado 11 Anos atrás.
RE: Really stuck on custom search portlet. (make it search in knowledgebase
Regular Member Postagens: 166 Data de Entrada: 30/11/11 Postagens Recentes
Can $theme.search() be customized this way?