Stop Analyzer(停止词分词器)
定义
输出示例
POST _analyze
{
"analyzer": "stop",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ quick, brown, foxes, jumped, over, lazy, dog, s, bone ]配置
配置示例
Last updated
POST _analyze
{
"analyzer": "stop",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ quick, brown, foxes, jumped, over, lazy, dog, s, bone ]Last updated
PUT my_index
{
"settings": {
"analysis": {
"analyzer": {
"my_stop_analyzer": {
"type": "stop",
"stopwords": ["the", "over"]
}
}
}
}
}
POST my_index/_analyze
{
"analyzer": "my_stop_analyzer",
"text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}[ quick, brown, foxes, jumped, lazy, dog, s, bone ]