> Really off the top of my head, if that's an expected query, >you can try to index the words backwards (in that field) and >then convert the query *plan to nalp* :). "interesting" approach ... I might give it a try :-) ... no kidding ;)
-----Ursprüngliche Nachricht----- Von: Shai Erera [mailto:ser...@gmail.com] Gesendet: Freitag, 7. Dezember 2012 10:20 An: java-user@lucene.apache.org Betreff: Re: Alternative for WildcardQuery with leading * Really off the top of my head, if that's an expected query, you can try to index the words backwards (in that field) and then convert the query *plan to nalp* :). You can also index the suffixes of words, e.g. vacancyplan, acancyplan, cancyplan and so forth, and then convert the query *plan to plan. Note that it increases the lexicon ! Shai On Fri, Dec 7, 2012 at 11:16 AM, Clemens Wyss DEV <clemens...@mysign.ch>wrote: > In order to provide suggestions our query also includes a > "WildcardQuery with a leading *", which, of course, has a HUGE > performance impact :-( > > E.g. > Say we have indexed "vacancyplan", then if a user typed "plan" he > should also be offered "vacancyplan" ... > > How can this feature be implemented without WcQwl* ? > > Any help appreciated > - Clemens > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org