cancel
Showing results for 
Search instead for 
Did you mean: 

To Many Clause Exception

vivekkumarkohli
Champ in-the-making
Champ in-the-making
Hi All,

I am running this lucene search:-


+PATH:"//cm:crl_home//*" +TYPE:"cm:content" +@cm\:created:[2010\-06\-06T10:28:20 TO 2010\-06\-06T10:28:40] +@cm\:insp_idSmiley Sad*1)


And this is giving me error
Search failed due to: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000    

But it works fine if I use *2 or any other number.

Also the created date filter does not work on time and gives result of all the documents created that day.

Can someone please help me.

Thanks
Vivek
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
If you need more clauses, you can increase the property value lucene.query.maxClauses:
http://wiki.alfresco.com/wiki/Full-Text_Search_Configuration
Hope this helps.