【发布时间】:2011-08-28 17:00:44
【问题描述】:
我正在尝试通过将值作为文档中的字段传递来将值插入到 solr 中的布尔字段中,因此:
<add>
<doc>
<field name="WouldBuySameModelAgain">value-here</field>
</doc>
</add>
schema.xml中的字段定义为:
<field name="WouldBuySameModelAgain" type="boolean" index="false" stored="true" required="false" />
在我的示例中,我无法找到任何关于应该使用什么值的文档,其中显示“value-here”。我已经尝试过 true & false、True & False、TRUE & FALSE、1 & 0 都无济于事 - 我的索引中仍然没有具有布尔字段值的文档。我所有存储为“true”的非布尔字段都在获取值。
欢迎所有建议。
【问题讨论】: