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
  Karsten




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: 
http://www.nabble.com/Injecting-additional-tokens-tp19260304p19265968.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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

Reply via email to