Hi Mohammad,
be default wildcard queries cannot start with a wildcard character because it
destroys the performace of the search.
But if you still want to be able to create such queries with the QueryParser
then set the allowLeadingWildcard flag
of the parser to true by calling its method setAllowLeadingWildcard( true );
Jiri
From: muhammad ismael [mailto:m.ismae...@gmail.com]
Sent: Tuesday, December 28, 2010 3:05 AM
To: CLucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] _CLTHROWT(CL_ERR_Parse,_T("'*' or '?' not allowed as
first character in WildcardQuery"));
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
------------------------------------------------------------------------------
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