You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/02/05 13:27:39 UTC

[jira] [Updated] (OAK-3990) Enable specifying the max clause limit in BooleanClause

     [ https://issues.apache.org/jira/browse/OAK-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chetan Mehrotra updated OAK-3990:
---------------------------------
    Description: 
[BooleanQuery|https://lucene.apache.org/core/4_7_1/core/org/apache/lucene/search/BooleanQuery.html#setMaxClauseCount(int)] by default has a limit for 1024 clauses. This is a fair limit to have. However in certain cases it would be desirable to adjust this limit so we should provide support for that

This limit would be hit if a JCR Query has > 1024 number of OR clauses and following exception would be seen
{noformat}
Uncaught Throwable
org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
{noformat}

  was:[BooleanQuery|https://lucene.apache.org/core/4_7_1/core/org/apache/lucene/search/BooleanQuery.html#setMaxClauseCount(int)] by default has a limit for 1024 clauses. This is a fair limit to have. However in certain cases it would be desirable to adjust this limit so we should provide support for that


> Enable specifying the max clause limit in BooleanClause
> -------------------------------------------------------
>
>                 Key: OAK-3990
>                 URL: https://issues.apache.org/jira/browse/OAK-3990
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>             Fix For: 1.4
>
>
> [BooleanQuery|https://lucene.apache.org/core/4_7_1/core/org/apache/lucene/search/BooleanQuery.html#setMaxClauseCount(int)] by default has a limit for 1024 clauses. This is a fair limit to have. However in certain cases it would be desirable to adjust this limit so we should provide support for that
> This limit would be hit if a JCR Query has > 1024 number of OR clauses and following exception would be seen
> {noformat}
> Uncaught Throwable
> org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)