Classic Tokenizer
输出示例
POST _analyze
{
"tokenizer": "classic",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ The, 2, QUICK, Brown, Foxes, jumped, over, the, lazy, dog's, bone ]配置
配置示例
Last updated
POST _analyze
{
"tokenizer": "classic",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ The, 2, QUICK, Brown, Foxes, jumped, over, the, lazy, dog's, bone ]Last updated
PUT my_index
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "my_tokenizer"
}
},
"tokenizer": {
"my_tokenizer": {
"type": "classic",
"max_token_length": 5
}
}
}
}
}
POST my_index/_analyze
{
"analyzer": "my_analyzer",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ The, 2, QUICK, Brown, Foxes, jumpe, d, over, the, lazy, dog's, bone ]