Andrei,

If this sort of thing is important enough, you could implement a customized analyzer which would reverse all terms and store them in a separate field (in addition to the a non-reversed field). This will double your index size, of course.

Then, when searching, suffix query terms (those beginning with '*') could be reversed and wildcard-searched on the reverse-term field.

Hope it helps,
Steve Rowe

Andrei Melis wrote:
Hello all,
As far as I have understood, lucene does not allow search queries starting
with wildcards.
I have a file database indexed by content and also by filename. It would be
nice if the user could perform a usual search like "*.ext".
Anybody tried a workaround for this issue ? ( this is needed only for the
name of the file, for the rest of the terms the rules are fine with me)
I assume that this will produce a decrease of search speed... is this
correct ?
10q,
Andrei




--
Steve Rowe
Software Engineer
Center for Natural Language Processing
School of Information Studies
Syracuse University
www.cnlp.org


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to