我无法查询二进制数据字段。我用二进制字段类型创建了以下字段。
<field name="binarycheck" type="binary" indexed="true" stored="true" />
字段类型定义是默认的。
<fieldtype name="binary" class="solr.BinaryField"/>
我执行了以下命令来索引到 Solr。
curl 'http://localhost:4983/solr/update?commit=true' -H 'Content-type:application/json' -d '[{"id":"pd_3006","binarycheck":{"set":10101000}}]'
当我使用该id
字段进行查询时,我能够获取文档。
即使我尝试过`
http://'localhost':4983/solr/collection1/select?q=binarycheck:10101000&wt=json&indent=true
`
但它没有给出任何结果。请帮忙