elasticsearch 我没有收到任何回应,elasticsearch,nest,elasticsearch,Nest" /> elasticsearch 我没有收到任何回应,elasticsearch,nest,elasticsearch,Nest" />

elasticsearch 我没有收到任何回应

elasticsearch 我没有收到任何回应,elasticsearch,nest,elasticsearch,Nest,嵌套客户端向此URL发送a请求: http://localhost:9200/myindex/product/_search?typed_keys=true http://localhost:9200/myindex/_search?typed_keys=true 这不会返回任何结果 但如果我向此URL发送HTTP请求: http://localhost:9200/myindex/product/_search?typed_keys=true http://localhost:9200/m

嵌套客户端向此URL发送a请求:

http://localhost:9200/myindex/product/_search?typed_keys=true
http://localhost:9200/myindex/_search?typed_keys=true
这不会返回任何结果

但如果我向此URL发送HTTP请求:

http://localhost:9200/myindex/product/_search?typed_keys=true
http://localhost:9200/myindex/_search?typed_keys=true
然后我得到结果。为什么会这样?我索引出什么错误了吗

嵌套版本:6.0.2


Elasticsearch版本:6.2.3

找到了它。以防将来有人会遇到同样的问题


当我为文档编制索引时,“模型”名称是“producthomepagemodel”,但在我查询索引的应用程序中,我使用模型“product”。这些模型具有相同的属性,但类名不同。现在可以了。

你有没有试过请求@ThanhLD我有。没有结果。如果我删除了/产品,那么我就会得到结果/myindex表示我的索引的名称。产品代表什么?“我的索引”中的文档类型?您可以使用连接设置上的
DefaultMappingFor(…)
将不同的
\u类型
名称映射到POCO: