I tried to use the filter but i don't know which filter should i use so i
used QueryFilter but also i got Too Many clauses exception
Term * t = new Term(_T("text"), _T("*ex*"));
WildcardQuery * wq = new WildcardQuery(t);
QueryFilter * filter = new QueryFilter(wq);
ConstantScoreQuery * cq = new ConstantScoreQuery(filter);
m_pHits = m_pSearcher->search(cq);
On Sun, Jan 2, 2011 at 2:05 PM, <
clucene-developers-requ...@lists.sourceforge.net> wrote:
> Send CLucene-developers mailing list submissions to
> clucene-developers@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
> or, via email, send a message with subject or body 'help' to
> clucene-developers-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
> clucene-developers-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CLucene-developers digest..."
>
>
> Today's Topics:
>
> 1. Re: Too many clauses exception when using WildcardQuery!
> (Ben van Klinken)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 2 Jan 2011 08:40:33 +1000
> From: Ben van Klinken <bvanklin...@gmail.com>
> Subject: Re: [CLucene-dev] Too many clauses exception when using
> WildcardQuery!
> To: clucene-developers@lists.sourceforge.net
> Message-ID:
>
> <aanlktiksfj7vgypbgyz8ayk3o3_ldzpozh1k+b7up...@mail.gmail.com<aanlktiksfj7vgypbgyz8ayk3o3_ldzpozh1k%2bb7up...@mail.gmail.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> If you use a filter, then you don't have this restriction. The downside of
> a
> filter is that you don't have scoring - but it's debatable how good a
> scoring system you would have for *as* anyway...
>
> ben
>
> On Fri, Dec 31, 2010 at 8:02 PM, muhammad ismael <m.ismae...@gmail.com
> >wrote:
>
> > It is really slow but i am Compelled .
> >
> > but i have a question what if the results exceeded (2^31) will it crash
> > also?
> > because i have a huge amount of documents and say that the user searched
> > for WildCardQuery("*as*") for example, it will return documents exceed
> the
> > max clauses.
> > is somebody have a better solution for this situation ?
> >
> > Mohammad Ismael
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn how Oracle Real Application Clusters (RAC) One Node allows
> customers
> > to consolidate database storage, standardize their database environment,
> > and,
> > should the need arise, upgrade to a full multi-node Oracle RAC database
> > without downtime or disruption
> > http://p.sf.net/sfu/oracle-sfdevnl
> > _______________________________________________
> > CLucene-developers mailing list
> > CLucene-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/clucene-developers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
> ------------------------------
>
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>
>
> End of CLucene-developers Digest, Vol 57, Issue 1
> *************************************************
>
--
Sincerely
--------------------
Mohammad Ismael
Software Developer
Mobile:+20114753575
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers