|
From: Ahmed n. <ci7...@gm...> - 2010-12-28 08:35:58
|
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.i...@gm...>:
> 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
|