jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Usoltsev <max.usolt...@gmail.com>
Subject org.apache.lucene.search.BooleanQuery$TooManyClauses when using IsDescendantNode
Date Thu, 16 Dec 2010 13:36:53 GMT
Hi !

jackrabbit-jca 2.2, jboss 4.2.3

Query
--------------
select
agent0.[jcr:uuid] as agent0_uuid
FROM
[dt:Agent] as agent0
WHERE
(IsDescendantNode(agent0, '/some/path/to/agents'))
--------------
fails with error
16:23:19,669 ERROR [STDERR] Caused by:
org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount
is set to 1024
16:23:19,669 ERROR [STDERR] 	at
org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:163)
16:23:19,669 ERROR [STDERR] 	at
org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:154)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.getDescendantNodeQuery(LuceneQueryFactory.java:410)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.create(LuceneQueryFactory.java:388)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.mapConstraintToQueryAndFilter(LuceneQueryFactory.java:355)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.execute(LuceneQueryFactory.java:184)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:222)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:137)
16:23:19,669 ERROR [STDERR] 	at
org.apache.jackrabbit.core.query.QueryObjectModelImpl.execute(QueryObjectModelImpl.java:114)
16:23:19,669 ERROR [STDERR] 	at
org.comsoft.jcr.JcrEntityListImpl.getResultList(JcrEntityListImpl.java:198)

if more then 1024 nodes corresponds to this request
Base type for dt:Agent is nt:unstructured.

But query
--------------
select  agent0.[jcr:uuid] as agent0_uuid
FROM
[dt:Agent] as agent0
inner join [dt:folder] as parentFolder on IsDescendantNode(agent0, parentFolder)
where issamenode(parentFolder, '/some/path/to/agents')
--------------
works fine (but slow, but i hope
https://issues.apache.org/jira/browse/JCR-2835 will help)

So i think this exception
(org.apache.lucene.search.BooleanQuery$TooManyClauses) is a bug, isnt
it ?

Mime
View raw message