elasticsearch搜索错误,有偿提问

搜索报错:
可有偿,求大神解答

production.ERROR: exception 'Elasticsearch\Common\Exceptions\ServerErrorResponseException' with message '{"error":{"root_cause":[{"type":"class_cast_exception","reason":"org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"uskenko","node":"ID1k82onQvWHNG9bgD1RNw","reason":{"type":"class_cast_exception","reason":"org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexNumericFieldData"}}]},"status":500}' in /home/ccs_jpus01/wwwroot/public/plugins/jason/ccshop/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:613
阅读 5.7k
3 个回答

你得贴一下你的数据结构跟查询语句呀

https://github.com/elastic/elasticsearch/issues/3193
参考了下。。还真有issues。。你应该之前某个字段改过mapping,并删过数据。。。然后重建索引之后搜的。。
说真的我是没遇到这个问题。。如果数据量不大,你可以试下清空完索引文件再重建下试试看~~最后一招。。换个索引名试试吧。。
但愿你能解决掉。。上个邀请没回答。这个答下

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏