【发布时间】:2015-12-31 17:45:31
【问题描述】:
我正在使用nest 在.net 中实现elasticsearch,并且是新手。我正在尝试映射建议者,请帮助我。如何在 c# 中使用嵌套来做到这一点
curl -X PUT localhost:9200/songs/song/_mapping -d '{
"song" : {
"properties" : {
"name" : { "type" : "string" },
"suggest" : { "type" : "completion",
"index_analyzer" : "simple",
"search_analyzer" : "simple",
"payloads" : true
}
}
}
}'
【问题讨论】:
-
有什么问题?什么不工作?
-
如何在c#中使用nest做到这一点?
标签: c# .net elasticsearch autocomplete nest