Re: WildCardQuery and TooManyClauses

2008-09-19 Thread Konstantyn Smirnov
Konstantyn Smirnov wrote: > > So, how can I plug the WildcardFilter in, to prevent TooManyClauses? Are > there other ways, than using the trunk? > Now I ended up in overriding also QueryParser.getPrefixQuery() method, using ConstantScoreQuery and PrefixFilter. MaxClauseCountExc is gone, but

Re: WildCardQuery and TooManyClauses

2008-09-18 Thread Konstantyn Smirnov
Michael McCandless-2 wrote: > > > It's only with the trunk version of Lucene that QueryParser calls > getWildcardQuery on parsing a wildcard string from the user's query. > I see.. So, how can I plug the WildcardFilter in, to prevent TooManyClauses? Are there other ways, than using the tru

Re: WildCardQuery and TooManyClauses

2008-09-18 Thread Michael McCandless
It's only with the trunk version of Lucene that QueryParser calls getWildcardQuery on parsing a wildcard string from the user's query. Mike Konstantyn Smirnov wrote: Beard, Brian wrote: 1) Extend QueryParser to override the getWildcardQuery method. Kinda late :), but I still have a

RE: WildCardQuery and TooManyClauses

2008-09-18 Thread Konstantyn Smirnov
Beard, Brian wrote: > > 1) Extend QueryParser to override the getWildcardQuery method. > Kinda late :), but I still have another question: Who calls that getWildcardQuery() method? I subclassed the QueryParser, but that method does never get invoked, even if the query contains *. Shall I

Re: WildCardQuery and TooManyClauses

2008-04-18 Thread Joe K
} > >return bits; > } > -Original Message- > From: Joe K [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 10, 2008 11:46 AM > To: java-user@lucene.apache.org > Subject: Re: WildCardQuery and TooManyClauses > > Donna, > so this doesn't w

RE: WildCardQuery and TooManyClauses

2008-04-14 Thread Beard, Brian
urn bits; } -Original Message- From: Joe K [mailto:[EMAIL PROTECTED] Sent: Thursday, April 10, 2008 11:46 AM To: java-user@lucene.apache.org Subject: Re: WildCardQuery and TooManyClauses Donna, so this doesn't work because search calls internaly MultiTermQuery.rewrite which causes T

Re: WildCardQuery and TooManyClauses

2008-04-10 Thread Joe K
Donna, so this doesn't work because search calls internaly MultiTermQuery.rewrite which causes TooManyClauses exception anyway even if the maxnumhits is set to 200 !! So I am lost again... Chose On Thu, Apr 10, 2008 at 3:02 PM, Donna L Gresh <[EMAIL PROTECTED]> wrote: > Doesn't the following d

Re: WildCardQuery and TooManyClauses

2008-04-10 Thread Joe K
Hi Donna, thanks for the reply! I didn't try yet, but you are probably right that this should work for me. The filter parameter and the fact that TopDocs doesn't have the getter to the scoreDocs were confusing to me. Thanks a lot, Chose On Thu, Apr 10, 2008 at 3:02 PM, Donna L Gresh <[EMAIL PRO

Re: WildCardQuery and TooManyClauses

2008-04-10 Thread Donna L Gresh
Doesn't the following do what you want with maxnumhits =200? TopDocs td; td = indexSearcher.search(query, filter, maxnumhits); where filter can be null Donna L. Gresh Services Research, Mathematical Sciences Department IBM T.J. Watson Research Center (914) 945-247