When deleting large collection of document (using the web crawler or the file crawler) this error can happend:
Caused by: com.jaeksoft.searchlib.SearchLibException: com.jaeksoft.searchlib.query.ParseException: org.apache.lucene.queryParser.ParseException: Cannot parse 'uri:(file\:////... : too many boolean clauses
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:215)
at com.jaeksoft.searchlib.request.SearchRequest.getQuery(SearchRequest.java:306)
... 14 more
Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:153)
at org.apache.lucene.queryParser.QueryParser.getBooleanQuery(QueryParser.java:978)
at org.apache.lucene.queryParser.QueryParser.getBooleanQuery(QueryParser.java:932)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1300)
at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1341)
at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1265)
at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1254)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:200)