JIRA Fails to Display Filtered Issues Due to Lucene Search Limit
Symptoms
JIRA portlets display the following error message when displaying issues:
org.apache.lucene.search.BooleanQuery$TooManyClauses
at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:79)
at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:71)
at org.apache.lucene.search.RangeQuery.rewrite(RangeQuery.java:99)
at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:243)
at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:166)
...
...
Cause
The total amount of results returned by the filter criteria is greater than the one set in jira-application.properties
.
Resolution
Increase the value for jira.search.maxclauses
in <atlassian-jira>/WEB-INF/classes/jira-application.properties
.
# Set this to higher than your expected number of issues, if you want date range searches across all issues to work.
jira.search.maxclauses=65000
See - JRASERVER-3127Getting issue details... STATUS for more information.