我没有得到回应

I get no hits in the response

NEST 客户端向此发送请求 URL:

http://localhost:9200/myindex/product/_search?typed_keys=true

这 return 没有任何结果。

但是如果我向这个 URL 发送 HTTP 请求:

http://localhost:9200/myindex/_search?typed_keys=true

然后我得到结果。为什么是这样?我索引有误吗?

NEST 版本: 6.0.2

Elasticsearch 版本:6.2.3

找到了。以防以后有人遇到同样的问题。

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