Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Nest 中使用弹性搜索的建议功能?我在当前文档中找不到它。
文档很难跟上 elasticsearch 核心团队推动功能的快速步伐!
目前最好的选择是查看单元测试:
https://github.com/elasticsearch/elasticsearch-net/tree/master/src/Tests/Nest.Tests.Unit/Search/suggest/CompletionSuggestTests.cs
https://github.com/elasticsearch/elasticsearch-net/tree/master/src/Tests/Nest.Tests.Unit/Search/suggest/PhraseSuggestTests.cs
https://github.com/elasticsearch/elasticsearch-net/tree/master/src/Tests/Nest.Tests.Unit/Search/suggest/TermSuggestTests.cs
当功能缺失时我所做的是克隆源,创建分支,然后我添加了实现,然后我做了拉取请求。所以现在我有了这个功能:)
https://github.com/Mpdreamz/NEST