I am using version 3.0.44 of the Aerospike C Client and it looks like the where clause in a query only allows NULL-terminated strings. The as_predicate_value structure only stores a pointer to a char * and the code uses strlen() to determine the length of such string. Is there any way of constructing a predicate that can contain NULL characters?
Re: C Client does not support querying binary data
Postby gsanchez » Tue Jan 28, 2014 4:10 pm
I tried storing it as a blob and modified the client to support querying by blobs. I created a secondary string index on the blob bin and the server returns an error AEROSPIKE_ERR_INDEX. I checked the TCP segments in wireshark and the data is in fact there. Is it just that Aerospike doesn’t support querying blobs?
Sorry, this is correct, Aerospike currently only supports integer and string secondary indexes.
If you can describe your use case to us, we may be able to find a different way of accomplishing the same thing. What is it that you are trying to index?