tags:

views:

32

answers:

1

Hi, i am indexing some data in which '@' character should be treated like the way it is. I also need all the features provided by standard Analyzer (eliminating punctuation,trailing s etc), but this removes @ also. Is there any place where i can specify to treat a character as not a punctuation?Or any filter that can be used with whitespaceTokenizer for getting such results? i know that i should write my own analyzer for such requirement, but i don't want to miss if there is something very obvious.

Thanks, kaka

A: 

Found this post.Thanks to the author. Use PatternTokenizerFactory with appropriate filters.

kaka