cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]TooManyclause Exception

camillo
Champ in-the-making
Champ in-the-making
Hi all,

If I made a search from using wildcard a TooManyclauses Exceptions occurs:


org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000
   at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:165)
   at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:156)
   at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:63)

About this event, I read
http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-06fafb5d19e786a50fb3dfb8821a6af9f37aa831
and i putted in my code this following line:
BooleanQuery.setMaxClauseCount(30000);
but probably i put this line in a wrong place or I don't understand how can i use it.
Does anybody have yet solved this problem?

Thank you very much for your precious help!
1 REPLY 1

camillo
Champ in-the-making
Champ in-the-making
i solved my problem.
I found this following post
http://forums.alfresco.com/en/viewtopic.php?f=3&t=10620&start=0&st=0&sk=t&sd=a
so I edited my repository.properties and now all works fine!