Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Peter Hellstrand
Search does not work for Knowledge base articles
July 3, 2012 1:00 PM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Users are found. I tried to tag the article.

Must something be configured?

Thanks
Yogesh Agrawal
RE: Search does not work for Knowledge base articles
July 3, 2012 10:48 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 33

Join Date: May 17, 2010

Recent Posts

Configure search portlet to search for knowledge base articles.

Add an entry to search for knowledgebase article model
Peter Hellstrand
RE: Search does not work for Knowledge base articles
July 4, 2012 1:11 PM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

How can I do this?

wrench -> configuration have nothing that looks like this. Where do you configure this. Some more information please.
Yogesh Agrawal
RE: Search does not work for Knowledge base articles
July 4, 2012 10:35 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 33

Join Date: May 17, 2010

Recent Posts

Search portlet Configuration > Advanced
here you can add knowledgebase model entry in JSON.
Peter Hellstrand
RE: Search does not work for Knowledge base articles
July 5, 2012 10:01 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

What is "model entry in JSON"?

I am using the $getSearchPortlet in my velocity. How can i configure this(no wrench).

Thanks your time.
Yogesh Agrawal
RE: Search does not work for Knowledge base articles
July 5, 2012 11:01 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 33

Join Date: May 17, 2010

Recent Posts

In search portlet Configuration> Advanced, modify like this

 1{"facets": [
 2    {
 3        "displayStyle": "asset_entries",
 4        "weight": 1.5,
 5        "static": false,
 6        "order": "OrderHitsDesc",
 7        "data": {
 8            "values": [
 9                "com.liferay.portlet.bookmarks.model.BookmarksEntry",
10                "com.liferay.portlet.blogs.model.BlogsEntry",
11                "com.liferay.portlet.calendar.model.CalEvent",
12                "com.liferay.portlet.documentlibrary.model.DLFileEntry",
13                "com.liferay.portlet.journal.model.JournalArticle",
14                "com.liferay.portlet.messageboards.model.MBMessage",
15                "com.liferay.portlet.wiki.model.WikiPage",
16                "com.liferay.portal.model.User",
17                "com.liferay.knowledgebase.model.Article"
18            ],
19            "frequencyThreshold": 1
20        },
21        "label": "asset-type",
22        "className": "com.liferay.portal.kernel.search.facet.AssetEntriesFacet",
23        "fieldName": "entryClassName"
24    },
25    {
26        "displayStyle": "asset_tags",
27        "weight": 1.4,
28        "static": false,
29        "order": "OrderHitsDesc",
30        "data": {
31            "maxTerms": 10,
32            "displayStyle": "list",
33            "frequencyThreshold": 1,
34            "showAssetCount": true
35        },
36        "label": "tag",
37        "className": "com.liferay.portal.kernel.search.facet.MultiValueFacet",
38        "fieldName": "assetTagNames"
39    },
40    {
41        "displayStyle": "asset_tags",
42        "weight": 1.3,
43        "static": false,
44        "order": "OrderHitsDesc",
45        "data": {
46            "maxTerms": 10,
47            "displayStyle": "list",
48            "frequencyThreshold": 1,
49            "showAssetCount": true
50        },
51        "label": "category",
52        "className": "com.liferay.portal.kernel.search.facet.MultiValueFacet",
53        "fieldName": "assetCategoryNames"
54    },
55    {
56        "displayStyle": "modified",
57        "weight": 1.1,
58        "static": false,
59        "order": "OrderHitsDesc",
60        "data": {
61            "ranges": [
62                {
63                    "range": "[past-hour TO *]",
64                    "label": "past-hour"
65                },
66                {
67                    "range": "[past-24-hours TO *]",
68                    "label": "past-24-hours"
69                },
70                {
71                    "range": "[past-week TO *]",
72                    "label": "past-week"
73                },
74                {
75                    "range": "[past-month TO *]",
76                    "label": "past-month"
77                },
78                {
79                    "range": "[past-year TO *]",
80                    "label": "past-year"
81                }
82            ],
83            "frequencyThreshold": 0
84        },
85        "label": "modified",
86        "className": "com.liferay.portal.kernel.search.facet.ModifiedFacet",
87        "fieldName": "modified"
88    }
89]}


Configuration icon should be there, did you disabled this ?
Peter Hellstrand
RE: Search does not work for Knowledge base articles
July 7, 2012 11:21 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Thank you

No i did not disable it.

I am getting my search portlet this way in my custom theme.

$theme.journalContentSearch()

edit: found this link. Gonna give it a try.

http://blog.algoworks.com/archives/tag/add-search-in-liferay-theme-header
Yogesh Agrawal
RE: Search does not work for Knowledge base articles
July 8, 2012 10:16 PM
Answer

Yogesh Agrawal

Rank: Junior Member

Posts: 33

Join Date: May 17, 2010

Recent Posts

http://www.liferay.com/web/raymond.auge/blog/-/blogs/11180056

This link is also helpful.
Peter Hellstrand
RE: Search does not work for Knowledge base articles
July 14, 2012 12:24 PM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

I am still stuck on this one. That json does not search knowledge base articles.
Skulled Filed
RE: Search does not work for Knowledge base articles
October 9, 2012 2:26 AM
Answer

Skulled Filed

Rank: New Member

Posts: 13

Join Date: March 22, 2011

Recent Posts

Look http://www.liferay.com/community/forums/-/message_boards/message/14859319

Try to put in search configuration: "com.liferay.knowledgebase.model.KBArticle"

instead

"com.liferay.knowledgebase.model.Article "
Antonio Benítez
RE: Search does not work for Knowledge base articles
February 11, 2013 1:25 AM
Answer

Antonio Benítez

Rank: New Member

Posts: 1

Join Date: October 31, 2012

Recent Posts

This works fine for me emoticon Thank you!!