Thanks Uwe for clarification !
On Thu, Apr 18, 2013 at 4:37 PM, Uwe Schindler <u...@thetaphi.de> wrote: > Lucene 2.9+ has a different Wildcard Expansion using BooleanQuery only for > few terms, otherwise it uses a filter-based approach. Same applies for > range queries and prefix queries. > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -----Original Message----- > > From: Arun Kumar K [mailto:arunk...@gmail.com] > > Sent: Thursday, April 18, 2013 12:41 PM > > To: java-user > > Subject: WildCardQuery: TooManyClauses Exception > > > > 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >