jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will McGauley (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-6733) Exceeding Lucene maxClauseCount results in no query results
Date Wed, 27 Sep 2017 12:58:00 GMT
Will McGauley created OAK-6733:

             Summary: Exceeding Lucene maxClauseCount results in no query results
                 Key: OAK-6733
                 URL: https://issues.apache.org/jira/browse/OAK-6733
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: lucene, query
    Affects Versions: 1.6.5
            Reporter: Will McGauley

When executing a query which exceeds the maxClauseCount no results are returned from the query,
and no exception is thrown.  The following warning is issued in the log:

26.09.2017 09:02:22.800 *WARN* [0:0:0:0:0:0:0:1 [1506430942097] `GET /aem/inbox `HTTP/1.1]
org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex query via org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex@30d76035
org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
    at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:143) (edited)

A simple example of  a query would be a SQL2 query with an IN clause with over 1024 entries.

Returning zero rows is misleading it would be better if an exception were thrown instead.

This message was sent by Atlassian JIRA

View raw message