【发布时间】:2017-01-03 15:41:57
【问题描述】:
背景:我使用 dspace 命令在我的统计 solr 核心中按年份执行分片:
[dspace]/bin/dspace stats-util -s
之后,有几个核心,按年份划分:statistics、statistics-2015、statistics-2014,等等。
但是,现在多值字段不正确,它们似乎是一个字符串:
"owningComm": [
"8,2,1,2,1,1"
]
当我们尝试查询时,例如,owningComm:1 没有给出结果。
在分片之前,正确的行为是整数“数组”:
"owningComm": [
5,
2,
1,
2,
1,
1
]
Solr 4 的 schema.xml 中的字段是:
<field name="owningComm" type="integer"
indexed="true" stored="true"
required="false" multiValued="true" />`
我已经尝试用逗号标记字符串,但没有成功。
有没有办法再次将此字段更新为整数?删除引号或类似的东西?
我们存储了数百万个文档。
【问题讨论】: