开发者

solr multiple tokenizers for query

开发者 https://www.devze.com 2023-02-10 05:55 出处:网络
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.

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 "开发者_Go百科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 :)


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

0

精彩评论

暂无评论...
验证码 换一张
取 消