lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karsten F." <karsten-luc...@fiz-technik.de>
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
  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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message