Two solutions come to mind: 1) See setAllowLeadingWildcard in QP. 2) Additionally ndex reversed tokens.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: java-user@lucene.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 > 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]