Page 2 of 2

Re: Any way to get document type values?

PostPosted:Tue Mar 18, 2014 9:06 pm
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

Re: Any way to get document type values?

PostPosted:Sat Mar 22, 2014 9:01 am
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).