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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to