RE: Alternative for WildcardQuery with leading *

2012-12-07 Thread Oliver Christ
suffix arrays. One can mark up start and end of the indexed term if the same trie should also be used for exact match ($abc$). Cheers, Oli -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Friday, December 07, 2012 4:34 AM To: java-user@lucene.apache.org Subjec

RE: Alternative for WildcardQuery with leading *

2012-12-07 Thread Uwe Schindler
In general, you seem to need decomposing...: vacancyplan -> tokenized to -> vacancyplan, vacancy, plan. Wildcards are in general not really a replacement for correct text analysis on the indexing side. Unfortunately, decomposing is a hard task, but there are dictionary-based algorithms for e.g.

Re: Alternative for WildcardQuery with leading *

2012-12-07 Thread Shai Erera
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 pla