solr multiple tokenizers for query

南笙酒味 提交于 2019-12-13 05:40:17

问题


I am rather new to SolR. I would like to use multiple tokenizers.

I am using the standard tokenizer so that words get split via \t, space, comma, etc.

Now I would like to use an additional tokenizer.

If there is the word

"cowshed"

I would like it to become "cow" and "shed".

There are only I few words which are common to the search index which I would like to split.

Therefore I planned using the regex tokenizer. However I get an error message when I try to ("multiple tokenizers at xml root").

Is it not possible? Do I need to change the code? Am I doing it wrong?

Thanks for your hints :)


回答1:


You can only have one tokenizer per analyzer. If you need to modify the tokens generated by the tokenizer you can use token filters.



来源:https://stackoverflow.com/questions/4997449/solr-multiple-tokenizers-for-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!