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
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
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
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
}
>
>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
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
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
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
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