{"type":"query_shard_exception","reason":"No mapping found for [CreateTime] in order to sort on","index_uuid":"pJZoz_lOT6OVW4-21l1aJQ","index":"beetlex"}
操作系统:win10, elasticsearch:已经装好,访问localhost:9200 { "name" : "dongjie5", "cluster_name" : "elasticsearch", "cluster_uuid" : "2PZyt1MyR2eHWcwu1XNPLQ", "version" : { "number" : "7.1.1", "build_flavor" : "unknown", "build_type" : "unknown", "build_hash" : "7a013de", "build_date" : "2019-05-23T14:04:00.380842Z", "build_snapshot" : false, "lucene_version" : "8.0.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } 在vs2017中运行blog程序,浏览器访问报 System.Net.WebException:“{"error":{"root_cause":[{"type":"query_shard_exception","reason":"No mapping found for [CreateTime] in order to sort on","index_uuid":"pJZoz_lOT6OVW4-21l1aJQ","index":"beetlex"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"beetlex","node":"gjvqQ0mfSqGAqqM3RDm0TQ","reason":{"type":"query_shard_exception","reason":"No mapping found for [CreateTime] in order to sort on","index_uuid":"pJZoz_lOT6OVW4-21l1aJQ","index":"beetlex"}}]},"status":400}”
跟踪程序Site.cs中esItems = esQuery.List<ESBlog>(start, size, out count);报上述异常,后来发现只要对ESBlog查询,都报这个错。
elastic只能用6.X.X
不知道能不能开源一下BeetleX.Elasticsearch的代码,想使用ES最新版本的
我也碰到了同样的问题,请教最后是怎么解决的???谢谢