luanbuingoc
luanbuingoc

Reputation: 178

Add a new tokenizer method in apache solr

Following title, I want to add a new tokenizer method into Apache Solr

http://mim.hus.vnu.edu.vn/phuonglh/softwares/vnTokenizer

My problem is I can't found any document about it. Is it possible ?

Upvotes: 0

Views: 277

Answers (1)

Pavel Vasilev
Pavel Vasilev

Reputation: 1042

I think the approach you can use is described here: Solr Plugins: section about Tokenizers / TokenFilters.

In a few words you need to extend Solr's org.apache.lucene.analysis.Tokenizer and implement your logic there. Afterwards you need to declare your new field type with your own tokenizer / token-filter.

Upvotes: 1

Related Questions