Hi Guys, I am using following queries: 1>WildCardQuery 2>BooleanQuery having a WildCardQuery and TermQuery. WildCardQuery is field:* or say field:ab*
>From Lucene FAQs and earlier discussions about TooManyClausesException i see that WildCardQuery gets expanded before doing search. For that i was trying to simulate this exception with Lucene 3.0.2 and i don't get one for WildCardQuery. For BooleanQuery with many term queries/ clauses i could simulate but for BooleanQuery (with a WildCardQuery & TermQuery) and for WildCardQuery i couldn't. I have 10000 tokens matching the search for a field:* or field:ab* in the index. I feel expansion doesn't happen for WildCardQuery and BooleanQuery having it considers it as one clause. Have some implementation changed in 3.0.2 ? Can anyone explain the Query expansion here ? Arun