unplug Keyword Map feature

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
sunil
Junior Boarder
Junior Boarder
Posts: 20
Joined: Wed Sep 02, 2015 1:47 pm

unplug Keyword Map feature

Post by sunil » Mon Nov 28, 2016 7:19 am

Hi,

I have more that 1 million keywords for all the documents available in OpenKM.

All features are working fine except Keyword Map(in Dashboard screen, where all the available keywords are listed). Due to high volume of keywords, OpenKM hangs.

I tried to unplug it from profile menu but it still request for all keywords on pageload and hangs.

Can somebody direct me to the code from where i can simply disable this request?

Thanks.

jllort
Moderator
Moderator
Posts: 10876
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: unplug Keyword Map feature

Post by jllort » Tue Nov 29, 2016 5:12 pm

First can try to hide the tag cloud in dashboard panel from profiles ( I think community it have this feature ).

In source code you might be interested in classes:
My suggestion is comment everything into the method ( basically return always empty list ).
SearchServlet line 223

Code: Select all

public List<GWTKeyword> getKeywordMap(List<String> filter) throws OKMException {
KeyMapDashboard line 592

Code: Select all

/**
	 * getKeywordMap
	 */
	public void getKeywordMap(List<String> filter) {
		// Only make call when collection is not empty, other case there's no filtering by keyword and
		// result it'll be inconsistent
		if (!filter.isEmpty()) {
			if (showStatus() && keyRelatedTable.isVisible()) {
				keyRelatedTable.setRefreshing();
			}
			searchService.getKeywordMap(filter, callbackGetKeywordMapFiltered);
		} else if (dashboardVisible) {
			keyRelatedTable.reset();
			keyRelatedTable.setVisible(false);
			drawTagCloud(); // Draws tag cloud
		}
	}
KeywordMap.java line 228

Code: Select all

for (GWTKeyword key : Main.get().mainPanel.dashboard.keyMapDashboard.getAllKeywordList()) {
			String keyword = key.getKeyword();
			multiWordkSuggestKey.add(keyword);
			keywordList.add(keyword);
		}
Hope can help you on it.

Post Reply