If you are trying to store the custom objects in Riak, then please make sure to name the fields appropriately.
Assume the below custom object
SaveData is a Model class and it has the below fields,
If we save this information, It will work fine but we will have an issue while trying to retrieve the data with the index[Each bucket should have an index for effective searching and faster retrieval]
so we should hint the data type in the field name. For example, userId is a string field, so we can rename this into userId_s and the timeStamp is a long value, so we can rename this into timstamp_l and value is string field, so we can rename it to value_s