> That will let you do it, be warned however there is most definitely a
> significant performance degradation associated with doing this.
Yes of course. Like in a relational database with a leading wildcard.
-
To unsubscribe, e
> 1) See setAllowLeadingWildcard in QP.
Oh damned... late in the evening ;)
Hm, just tested it:
Searching for "format" works.
Searching for "form*" works.
Searching for "*ormat" works NOT.
Confused again ;)
-
To unsubscribe,
What you need is to set the allow leading wildcard flag.
qp.setAllowLeadingWildcard(true);
(where qp is a query parser instance)
That will let you do it, be warned however there is most definitely a
significant performance degradation associated with doing this.
Matt
[EMAIL PROTECTED] wrote
cene.apache.org
> Sent: Friday, February 22, 2008 1:24:21 PM
> Subject: Suffix search
>
> Hi,
>
> using WildcardQuery directly it is possible to search for suffixes like
> "*foo".
>
> The QueryParser throws an exception that this is not allowed in a
> WildcardQu
Hi,
using WildcardQuery directly it is possible to search for suffixes like
"*foo".
The QueryParser throws an exception that this is not allowed in a
WildcardQuery.
Hm, now I'm confused ;)
How can I configure the QueryParser to allow a wildcard as first character?
Thank you
-