Hi, QueryParser doesn't support leading wildcards by default, you can
change that behavior by calling
QueryParser::setAllowLeadingWildcard(true)

Ahmed.

2010/12/28, muhammad ismael <m.ismae...@gmail.com>:
> Hi,
> I am trying to build a WildcardQuery using QueryParser but i got the
> following error
>
> _CLTHROWT(CL_ERR_Parse,_T("'*' or '?' not allowed as first character in
> WildcardQuery"));
>
> this error exists inside function QueryParser::getWildcardQuery
>
> I am using star *  as a first character.
> when i built the WildcardQuery my self  i got search results but it tokes a
> long time.
> but i want to build the query using QueryParser because i can't know the
> Query type that i should build for each term.
> is this a bug in the QueryParser or i am doing something wrong?
>
> Mohammad Ismael
>

-- 
Envoyé avec mon mobile

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

Reply via email to