RE: Suffix search

2008-02-22 Thread spring
> 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

RE: Suffix search

2008-02-22 Thread spring
> 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,

Re: Suffix search

2008-02-22 Thread Matthew Hall
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

Re: Suffix search

2008-02-22 Thread Otis Gospodnetic
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

Suffix search

2008-02-22 Thread spring
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 -