【问题标题】:Solr - Error adding document with multivalued fieldSolr - 添加具有多值字段的文档时出错
【发布时间】:2013-12-02 15:59:22
【问题描述】:

架构:

<field name="tags" type="string_ci" indexed="true" stored="true" multiValued="true" />

文档:

document = {
    "id":123, 
    "title":"this is title", 
    "description":"this is desc", 
    "tags":["beach", "luxury", "RTW"]
}

错误:

<title>Error 400 ERROR: [doc=20] Error adding field \'tags\'=\'[beach, luxury, RTW]\'</title>

我尝试了 REST、python 模块 solrpy 和 sunburnt,但给出了同样的错误。

【问题讨论】:

  • 查看使用 Sunburnt 添加多值字段的记录方法很有用。

标签: python rest solr sunburnt


【解决方案1】:

问题解决了!我的 solr 架构似乎有问题。

【讨论】:

  • 您能具体解释一下它有什么问题吗?
猜你喜欢
  • 1970-01-01
  • 2011-09-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-01-15
  • 1970-01-01
  • 1970-01-01
  • 2016-06-08
相关资源
最近更新 更多