@[TOC](通过全文搜索Elasticsearch搜索商品时出现报错TypeError: init() got an unexpected keyword argument ‘decimal_places’)

通过全文搜索Elasticsearch搜索商品时出现报错TypeError: __init__() got an unexpected keyword argument 'decimal_place'
我在定义搜索索引类的时候字典price定义的类型与我的模型类里面的字段price的类型定义不一致,导致报错,我们只需要将索引类里面的price类型与模型类里面模型定义的price类型保持一致的DecimalField类型即可,问题解决.

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-06-16
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案