简介:分词器是什么,内置的分词器有哪些
{
"analyzer": "standard",
"text": "The best 3-points shooter is Curry!"
}
{
"analyzer": "simple",
"text": "The best 3-points shooter is Curry!"
}
{
"analyzer": "whitespace",
"text": "The best 3-points shooter is Curry!"
}
{
"analyzer": "whitespace",
"text": "The best 3-points shooter is Curry!"
}
{
"analyzer": "english",
"text": "The best 3-points shooter is Curry!"
}
{
"analyzer": "pattern",
"text": "The best 3-points shooter is Curry!"
}
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"type": "whitespace"
}
}
}
},
"mappings": {
"properties": {
"name": {
"type": "text"
},
"team_name": {
"type": "text"
},
"position": {
"type": "text"
},
"play_year": {
"type": "long"
},
"jerse_no": {
"type": "keyword"
},
"title": {
"type": "text",
"analyzer": "my_analyzer"
}
}
}
}
{
"name": "库⾥",
"team_name": "勇⼠",
"position": "控球后卫",
"play_year": 10,
"jerse_no": "30",
"title": "The best 3-points shooter is Curry!"
}
{
"query": {
"match": {
"title": "Curry!"
}
}
}