Page 1 of 1

unplug Keyword Map feature

Posted: Mon Nov 28, 2016 7:19 am
by sunil
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.

Re: unplug Keyword Map feature

Posted: Tue Nov 29, 2016 5:12 pm
by jllort
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.