JIRA Fails to Display Filtered Issues Due to Lucene Search Limit

Still need help?

The Atlassian Community is here for you.

Ask the community

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-3127 - Getting issue details... STATUS  for more information.

Last modified on Jun 21, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.