0
votes

I'm not able to query on binary data field. I created the following field with binary field type.

<field name="binarycheck" type="binary" indexed="true" stored="true" />

Field type definition is the default one.

<fieldtype name="binary" class="solr.BinaryField"/>

I executed the following command to index into Solr.

curl 'http://localhost:4983/solr/update?commit=true' -H 'Content-type:application/json' -d '[{"id":"pd_3006","binarycheck":{"set":10101000}}]'

When I'm querying with the id field, I'm able to get the document.

enter image description here

Even I tried with `

http://'localhost':4983/solr/collection1/select?q=binarycheck:10101000&wt=json&indent=true

`

But it's not giving any result. Please help

1
Do you want to search the binary as a whole or do you want to do bitmask style searching?cheffe
Yes. I may provide the whole binary or part of it.buddy86
Hm, answering with yes to an either ... or question is a bit hard to understand :)cheffe

1 Answers

0
votes

Indexing of binary fields is not currently supported in Solr, only storage, which is why your query returns nothing. See cheffe's answer to a similar question here linking to a current issue tracker about this: https://stackoverflow.com/a/32497414/5317888