AnsweredAssumed Answered

Searching with * wildcard and TooManyClauses Exception

Question asked by sgomez on Sep 13, 2009
Greetings,

I am having a hard time grasping how I am getting a TooManyClauses exception when using the wildcard character.   

My scenario is that if my lucene search query is TYPE:"cm:content", it will return the first 1000 results(there is actually about 10,000 documents).

However, when my search query is TYPE:"cm:content" AND @cm\:name:test*, I get the org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 10000 as there is a little over 10,000 files with the name beginning with test.   

What I'm having trouble grasping is that a search for strictly type:content should also return over 10000 files, as every file with the name test* is a content.  Am I missing something here?

edit: for clarification

Outcomes