lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens Wyss DEV <clemens...@mysign.ch>
Subject AW: Alternative for WildcardQuery with leading *
Date Fri, 07 Dec 2012 09:29:08 GMT
> 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:serera@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 <clemensdev@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message