2.create a mapping
curl -XPOST http://localhost:9200/index/_mapping -H 'Content-Type:application/json' -d'
{
"properties": {
"content": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_smart"
}
}
}'
Elastic.Clients.Elasticsearch
PublishedCreated: 2024年10月27日星期日 20:43:23 views(206)