lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Kumar K <arunk...@gmail.com>
Subject WildCardQuery: TooManyClauses Exception
Date Thu, 18 Apr 2013 10:40:35 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message