问题
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