lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karsten F." <>
Subject Re: Injecting additional tokens
Date Tue, 02 Sep 2008 08:17:25 GMT

Hi Markus,

hopefully someone will tell you the predefined Filter for this.

I only want to agree, that filter is the correct place for this, and that
you should be aware of the Token positions (after your filter you must have
two Tokens on the same position).

I think "WordDelimitierFilter" is a good starting point, if you have to
write this filter by your own.

best regards

Markus Lux wrote:
> Hi,
> Assume I have a String "z-4". That would be properly indexed by my
> Analyzer,
> so I'd find the belonging document if I search for "z-4". Now I also want
> to
> find that document if I search for "z4".
> Now my approach would be to inject an additional token "z4" at indexing
> time. There may also be several other characters that could be deleted in
> a
> new token.
> How could I manage that? Is there any predefined Tokenizer/Filter for
> this?
> Or am I wrong and there is a better way to get this done?
> Thanks.
> -- 
> Markus

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message