一,standard
// 分词器
POST _analyze
{
"analyzer":"standard",
"text": "this is a book"
}
二,stop
// 分词器
POST _analyze
{
"analyzer":"stop",
"text": "this is a book"
}
stop分词器会删掉一些无具体意义的助词:比如 in,this等等
三,simple
// 分词器
POST _analyze
{
"analyzer":"simple",
"text": "this is a book"
}
四,whitespace
// 分词器
POST _analyze
{
"analyzer":"whitespace",
"text": "this is a book"
}
五,keyword
// 分词器
POST _analyze
{
"analyzer":"keyword",
"text": "this is a book"
}