3
curl -XPUT "localhost:9200/products" -d '{
"settings": {
"index": {
"number_of_replicas" : 0,
"number_of_shards": 1
}
},
"mappings": {
"products": {
"properties": {
"location" : {
"type" : "geo_point"
}
}
}
}
}'
我目前有一個bash腳本來創建我的索引。代碼在上面。如何在Elasticsearch中啓用詞幹?
如何添加詞幹?
怎麼了映射?這與它有什麼關係? –