• Any way to get document type values?

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #28126  by Sascha
 
Hi together,

I also get the lucene exception, when I start the daily report script. It causes at this point in the script (first row):
Code: Select all
--> for (QueryResult result : OKMSearch.getInstance().findPaginated(sysToken, queryParams, 0, Integer.MAX_VALUE).getResults()) {
	if (result.getDocument() != null) {
		Document doc = result.getDocument();
		// Parent must have role
		Map hm = OKMAuth.getInstance().getGrantedRoles(sysToken, Util.getParent(doc.getPath()));
		if (hm.keySet().contains(role)) {
			docs.add(doc);
		} 
	} else {
		sb.append("Error has been selected some results than is not a document" + "\n");
	}
}
and the error message in the log-file:
Code: Select all
Target exception: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
I tried to find the config-file to increase the value of "maxClauseCount", but I didn´t find. Did someone knows the file-path or is it more recommendable to optimize the query-filter? I am grateful for any help.

Best regards
Sascha
 #28165  by pavila
 
Please, provide a more complete description of the problem. I mean, the XML of the PropertyGroup definition and the Java code to reproduce the problem (it should compile, so I need the whole class or classes not only an excerpt).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.